Anki/ts/graphs
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
..
added.ts Make histogram show bars again 2021-01-30 02:08:01 +01:00
AddedGraph.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
AxisTicks.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
BUILD.bazel rework translation handling 2021-03-26 09:41:32 +10:00
buttons.ts merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
ButtonsGraph.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
calendar.ts merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
CalendarGraph.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
card-counts.ts Remove modular d3 imports for imports from d3 bundle 2021-01-30 01:13:47 +01:00
CardCounts.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
CumulativeOverlay.svelte move some cumulative-overlay-specific styling out of shared css 2021-03-21 20:18:05 +10:00
ease.ts Merge pull request #963 from hgiesel/ease130 2021-01-31 09:22:01 +10:00
EaseGraph.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
future-due.ts Make histogram show bars again 2021-01-30 02:08:01 +01:00
FutureDue.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
graph-helpers.ts Remove modular d3 imports for imports from d3 bundle 2021-01-30 01:13:47 +01:00
graph-styles.ts merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
Graph.svelte Fix syntax error introduced by rebase 2021-03-22 01:44:07 +01:00
GraphRangeRadios.svelte fix external consumption of ts rules, and simplify import path 2020-11-05 11:01:52 +10:00
graphs.html Load graphs.js from head 2021-02-22 14:17:56 +01:00
GraphsPage.svelte Create search and days writable in GraphsPage to allow browserSearch to work 2021-03-22 02:44:08 +01:00
histogram-graph.ts merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
HistogramGraph.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
HourGraph.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
hours.ts merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
HoverColumns.svelte add HoverColumns.svelte for hoverzone styling 2021-03-21 19:58:39 +10:00
index.ts Rename search and days to initialSearch and intitialDays in GraphsPage 2021-03-22 01:42:23 +01:00
InputBox.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
intervals.ts Coerce ease graph to 130 if applicable 2021-01-30 22:09:00 +01:00
IntervalsGraph.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
NoDataOverlay.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
preferences.ts minor wording tweak: GraphsPreferences -> GraphPreferences 2021-01-23 20:47:45 +10:00
RangeBox.svelte Satisfy svelte_check 2021-03-22 15:41:43 +01:00
reviews.ts merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
ReviewsGraph.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
TableData.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
today.ts fix external consumption of ts rules, and simplify import path 2020-11-05 11:01:52 +10:00
TodayStats.svelte merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
Tooltip.svelte Satisfy svelte_check 2021-03-22 15:41:43 +01:00
tooltip.ts add Tooltip.svelte so we can encapsulating styling 2021-03-21 19:35:38 +10:00
WithGraphData.svelte Satisfy svelte_check 2021-03-22 15:41:43 +01:00