Go to file
RumovZ 0efa3f944f
Garbage collect unused Fluent strings (#1482)
* Canonify import of i18n module

Should always be imported as `tr`, or `tr2` if there is a name collision
(Svelte).

* Add helper for garbage collecting ftl strings

Also add a serializer for ftl asts.

* Add helper for filter-mapping `DirEntry`s

* Fix `i18n_helpers/BUILD.bazel`

* run cargo-raze

* Refactor `garbage_collection.rs`

- Improve helper for file iterating
- Remove unused terms as well
- Fix issue with checking for nested messages by switching to a regex-
based approach (which runs before deleting)
- Some more refactorings and lint fixes

* Fix lints in `serialize.rs`

* Write json pretty and sorted

* Update `serialize.rs` and fix header

* Fix doc and remove `dbg!`

* Add binaries for ftl garbage collection

Also relax type constraints and strip debug tests.

* add rust_binary targets for i18n helpers (dae)

* add scripts to update desktop usage/garbage collect (dae)

Since we've already diverged from 2.1.49, we won't gain anything
from generating a stable json just yet. But once 2.1.50 is released,
we should run 'ftl/update-desktop-usage.sh stable'.

* add keys from AnkiMobile (dae)

* Mention caveats in `remove-unused.sh`
2021-11-12 18:19:01 +10:00
.buildkite move node_modules into root folder [action required] 2021-10-07 11:42:27 +10:00
.github/ISSUE_TEMPLATE update bug report template 2021-11-12 12:20:02 +10:00
cargo Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00
docs Python 3.10 not usable on Windows 2021-11-08 19:23:00 +10:00
ftl Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00
platforms use x86 binaries for clang format/protobuf on Mac 2021-10-16 18:07:39 +10:00
proto Editor Field Descriptions (#1476) 2021-11-06 09:42:48 +10:00
pylib Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00
python update Python deps; pin jsonschema 2021-11-06 08:28:42 +10:00
qt when a post handler fails, log the traceback to the console 2021-11-12 11:54:13 +10:00
rslib Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00
sass Save and restore location on ContentEditable (#1481) 2021-11-09 12:53:39 +10:00
scripts Fix invalid path in cargo-env.bat (#1477) 2021-11-05 11:08:23 +10:00
ts Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00
.bazelignore move node_modules into root folder [action required] 2021-10-07 11:42:27 +10:00
.bazelrc default to a vendored copy of Python 2021-10-15 22:14:05 +10:00
.bazelversion update Bazel version 2021-10-01 20:54:48 +10:00
.gitattributes try again to improve GitHub's language stats 2021-01-20 13:20:45 +10:00
.gitignore move node_modules into root folder [action required] 2021-10-07 11:42:27 +10:00
.prettierignore Fix prettier after moving node_modules to repo dir (#1413) 2021-10-09 10:13:14 +10:00
.prettierrc Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
bazel.bat initial Bazel conversion 2020-11-01 14:26:58 +10:00
BUILD.bazel Fix prettier after moving node_modules to repo dir (#1413) 2021-10-09 10:13:14 +10:00
Cargo.lock Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00
Cargo.toml Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00
CONTRIBUTORS add new hook: add_cards_did_change_deck (#1420) 2021-10-12 17:55:21 +10:00
defs.bzl bump version 2021-10-26 14:14:20 +10:00
late_deps.bzl download wheels using rules_python 2021-10-15 16:02:26 +10:00
LICENSE move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00
package.json add lint checks for unsupported browser API calls 2021-11-02 13:44:41 +10:00
pkgkey.asc add public key for release signing 2018-09-18 10:40:45 +10:00
README.md fix build badge 2021-06-24 09:21:56 +10:00
repos.bzl update translations 2021-11-12 15:02:17 +10:00
run get PyQt working directly with ./run on macOS 2021-10-16 18:07:29 +10:00
run.bat enable Python warnings when running 2020-12-16 14:59:04 +10:00
SECURITY.md add SECURITY.md 2021-09-22 22:55:19 +10:00
WORKSPACE move node_modules into root folder [action required] 2021-10-07 11:42:27 +10:00
yarn.lock add lint checks for unsupported browser API calls 2021-11-02 13:44:41 +10:00

Anki

Build status

This repo contains the source code for the computer version of Anki.

If you'd like to try development builds of Anki but don't feel comfortable building the code, please see https://betas.ankiweb.net/

For more information on building, please see Development.