Anki/rslib/src/backend
Damien Elmes 0c63a7c8c4 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
..
scheduler support undo of filtered deck build/empty 2021-03-24 12:56:06 +10:00
search move browser_row method into search service 2021-03-23 18:55:05 +10:00
sync split out sync, notetypes and config code 2021-03-11 15:47:31 +10:00
adding.rs Simplify note adding and the deck/notetype choosers 2021-03-10 11:53:27 +10:00
card.rs undoable ops now return changes directly; add new *_ops.py files 2021-03-19 19:45:21 +10:00
cardrendering.rs split out remaining rpc methods 2021-03-11 17:04:32 +10:00
collection.rs more reset refactoring 2021-03-19 19:45:21 +10:00
config.rs fix note importing detecting changes due to unicode differences 2021-03-22 10:56:24 +10:00
dbproxy.rs move collection mtime bump into backend 2021-03-19 19:45:21 +10:00
deckconfig.rs undoable ops now return changes directly; add new *_ops.py files 2021-03-19 19:45:21 +10:00
decks.rs rework filtered deck screen & search errors 2021-03-24 22:04:35 +10:00
err.rs rework filtered deck screen & search errors 2021-03-24 22:04:35 +10:00
generic.rs use perform_op() for deck creation 2021-03-22 23:17:07 +10:00
i18n.rs rework translation handling 2021-03-26 09:41:32 +10:00
media.rs undoable ops now return changes directly; add new *_ops.py files 2021-03-19 19:45:21 +10:00
mod.rs rework translation handling 2021-03-26 09:41:32 +10:00
notes.rs introduce separate routine to remove tags from specific notes 2021-03-19 19:45:21 +10:00
notetypes.rs split out sync, notetypes and config code 2021-03-11 15:47:31 +10:00
ops.rs use perform_op() for deck creation 2021-03-22 23:17:07 +10:00
progress.rs move progress and search backend code into separate files 2021-03-10 11:53:27 +10:00
stats.rs split out stats, media and search 2021-03-11 16:16:40 +10:00
tags.rs speed up tag drag&drop and finish tag tidyup 2021-03-19 19:45:21 +10:00