diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-17 01:05:24 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-17 01:05:24 +0800 |
| commit | 1957ba706f62a82a9f60df1f28e23de5fa8bb319 (patch) | |
| tree | fae07ade0aba30a1d0ad66344e4d1f61116f2074 /shakehand-test/Cargo.toml | |
| parent | c9685671512b05ec9b4caba2b7079382120cce1c (diff) | |
Implement fallback chain resolution for translation keys
Diffstat (limited to 'shakehand-test/Cargo.toml')
| -rw-r--r-- | shakehand-test/Cargo.toml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/shakehand-test/Cargo.toml b/shakehand-test/Cargo.toml index 3f20603..98d28f8 100644 --- a/shakehand-test/Cargo.toml +++ b/shakehand-test/Cargo.toml @@ -5,3 +5,18 @@ edition = "2024" [dependencies] shakehand.workspace = true + +[package.metadata.shakehand] +# Fallback chain: when the specified language does not exist, how to fall back the language +fallback.other = "en" +fallback.zh_HK = "zh_CN" # Hong Kong Traditional -> Simplified Chinese +fallback.zh_TW = "zh_CN" # Taiwan Traditional -> Simplified Chinese +fallback.zh_CN = "en" # Simplified Chinese -> English +fallback.vi = "zh_CN" # Vietnamese -> Simplified Chinese +fallback.ms = "id" # Malay -> Indonesian +fallback.it = "fr" # Italian -> French +fallback.pt = "es" # Portuguese -> Spanish +fallback.sv = "no" # Swedish -> Norwegian +fallback.no = "da" # Norwegian -> Danish +fallback.da = "sv" # Danish -> Swedish +fallback.tr = "ar" # Turkish -> Arabic |
