mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-02-13 01:15:55 +00:00
Enable emails in Chinese (#5400)
This commit is contained in:
parent
b92853824f
commit
496ae58cb6
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue