mirror of
https://github.com/AtHeartEngineer/lemmy.git
synced 2026-01-09 05:18:04 -05:00
Enable emails in Chinese (#5400)
This commit is contained in:
@@ -6,7 +6,12 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
for path in read_dir("translations/email/")? {
|
||||
let path = path?.path();
|
||||
if let Some(name) = path.file_name() {
|
||||
let lang = name.to_string_lossy().to_string().replace(".json", "");
|
||||
let mut lang = name.to_string_lossy().to_string().replace(".json", "");
|
||||
|
||||
// Rename Chinese simplified variant because there is no translation zh
|
||||
if lang == "zh_Hans" {
|
||||
lang = "zh".to_string();
|
||||
}
|
||||
// Rosetta doesnt support these language variants.
|
||||
if lang.contains('_') {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user