anki/ts
Damien Elmes 9aece2a7b8 rework translation handling
Instead of generating a fluent.proto file with a giant enum, create
a .json file representing the translations that downstream consumers
can use for code generation.

This enables the generation of a separate method for each translation,
with a docstring that shows the actual text, and any required arguments
listed in the function signature.

The codebase is still using the old enum for now; updating it will need
to come in future commits, and the old enum will need to be kept
around, as add-ons are referencing it.

Other changes:

- move translation code into a separate crate
- store the translations on a per-file/module basis, which will allow
us to avoid sending 1000+ strings on each JS page load in the future
- drop the undocumented support for external .ftl files, that we weren't
using
- duplicate strings in translation files are now checked for at build
time
- fix i18n test failing when run outside Bazel
- drop slog dependency in i18n module
2021-03-26 09:41:32 +10:00
..
congrats rework translation handling 2021-03-26 09:41:32 +10:00
editor switch from rollup to esbuild 2021-03-21 16:06:36 +10:00
esbuild add support for declaring css output in esbuild call 2021-03-21 16:06:36 +10:00
graphs rework translation handling 2021-03-26 09:41:32 +10:00
lib rework translation handling 2021-03-26 09:41:32 +10:00
sass merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
svelte Satisfy svelte_check 2021-03-22 15:41:43 +01:00
sveltelib Add type signatures to asyncReactive 2021-03-22 15:30:35 +01:00
.eslintrc.js initial Bazel conversion 2020-11-01 14:26:58 +10:00
.gitignore Add Mathjax filegroup 2020-11-14 14:14:25 +01:00
.prettierignore make 'bazel run ts:format' work 2020-11-12 20:49:00 +10:00
.prettierrc initial Bazel conversion 2020-11-01 14:26:58 +10:00
BUILD.bazel switch from rollup to esbuild 2021-03-21 16:06:36 +10:00
copy.bzl Move copy_page to ts/copy.bzl and rename to copy_files_into_group 2021-02-02 18:20:11 +01:00
esbuild.bzl bundle all Svelte css into separate file 2021-03-21 16:06:36 +10:00
eslint.bzl initial Bazel conversion 2020-11-01 14:26:58 +10:00
format.sh make 'bazel run ts:format' work 2020-11-12 20:49:00 +10:00
licenses.json Remove explicit popperjs again, because it's included in bootstrap.bundle 2021-03-09 13:37:56 +01:00
package.json switch from rollup to esbuild 2021-03-21 16:06:36 +10:00
prettier.bzl make 'bazel run ts:format' work 2020-11-12 20:49:00 +10:00
protobuf-shim.js switch from rollup to esbuild 2021-03-21 16:06:36 +10:00
protobuf.bzl clarify comment 2021-03-20 16:25:50 +10:00
README.md add add.sh helper for adding dependency and updating licenses 2020-12-31 12:20:51 +10:00
sql_format.bzl move exports_files call into ts/BUILD.bazel 2021-01-09 18:03:26 +10:00
sql_format.ts add .sql file formatter 2021-01-09 14:22:49 +10:00
tsconfig.json Move async and asyncReactive to sveltelib 2021-03-22 03:06:53 +01:00
update-licenses.sh add add.sh helper for adding dependency and updating licenses 2020-12-31 12:20:51 +10:00
update.sh add add.sh helper for adding dependency and updating licenses 2020-12-31 12:20:51 +10:00
vendor.bzl Remove explicit popperjs again, because it's included in bootstrap.bundle 2021-03-09 13:37:56 +01:00
yarn.lock switch from rollup to esbuild 2021-03-21 16:06:36 +10:00
yarn.sh Replace individual d3 libraries with encompassing d3 2021-01-30 00:00:22 +01:00

Anki's TypeScript and Sass dependencies. Some TS/JS code is also stored separately in ../qt/aqt/data/web/.

To update all dependencies:

./update.sh

To add a new dev dependency, use something like:

./add.sh -D @rollup/plugin-alias