add translation

This commit is contained in:
Ward from fusion-voyager-3 2024-02-25 20:40:42 +03:00
parent aa05bbcc4b
commit 6a061bcf3d
2 changed files with 3 additions and 2 deletions

View File

@ -67,5 +67,6 @@
"open-pika-wiki-title": "Open PikaOS Wiki",
"open-pika-wiki-title-subtitle": "Check for known issues and their solutions.",
"entry_row_button_install": "Install",
"entry_row_button_remove": "Uninstall"
"entry_row_button_remove": "Uninstall",
"credit_translator": "Translators"
}

View File

@ -86,7 +86,7 @@ pub fn welcome_content_page(window: &adw::ApplicationWindow, content_box: &gtk::
serde_json::from_str(&translator_json_data).expect("JSON format invalid");
if let serde_json::Value::Array(translators) = &translator_json["translators"] {
for translator in translators {
translator_json_array.push(translator["translator"].as_str().to_owned().unwrap())
translator_json_array.push(translator["credit_translator"].as_str().to_owned().unwrap())
}
}