mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 21:27:14 -05:00
* add anki_i18n and locale_config crates to launcher * add launcher.ftl * add tr to state * replace most hardcoded strings with translations * add support for `launcher` rustcfg to trim translations * use marker structs to denote type of translations * move underscores into generated code * Update cargo-license, which may fix the license order issue (dae)
15 lines
432 B
Rust
15 lines
432 B
Rust
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
#![allow(clippy::all)]
|
|
|
|
#[derive(Clone)]
|
|
pub struct All;
|
|
|
|
// Include auto-generated content
|
|
include!(concat!(env!("OUT_DIR"), "/strings.rs"));
|
|
|
|
impl Translations for All {
|
|
const STRINGS: &phf::Map<&str, &phf::Map<&str, &str>> = &_STRINGS;
|
|
const KEYS_BY_MODULE: &[&[&str]] = &_KEYS_BY_MODULE;
|
|
}
|