Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Swedish: register in the i18n tests, app.language docs and macOS localizations

Brandon Thomas4a5b9ffbcdce
diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs
index db13138cf..065afa599 100644
--- a/crates/ui-egui/src/i18n/tests.rs
+++ b/crates/ui-egui/src/i18n/tests.rs
@@ -13,12 +13,20 @@ const LANGUAGE_TABLES: &[(&str, &[(&str, &str)])] = &[
("pl", pl::TABLE),
("pt-br", pt_br::TABLE),
("ru", ru::TABLE),
+ ("sv", sv::TABLE),
("uk", uk::TABLE),
];
/// Every per-language table `tr_context` looks up.
-const CONTEXT_TABLES: &[(&str, &[(&str, &str, &str)])] =
- &[("ar", ar::CONTEXT), ("cs", cs::CONTEXT), ("ja", ja::CONTEXT), ("pl", pl::CONTEXT), ("ru", ru::CONTEXT), ("uk", uk::CONTEXT)];
+const CONTEXT_TABLES: &[(&str, &[(&str, &str, &str)])] = &[
+ ("ar", ar::CONTEXT),
+ ("cs", cs::CONTEXT),
+ ("ja", ja::CONTEXT),
+ ("pl", pl::CONTEXT),
+ ("ru", ru::CONTEXT),
+ ("sv", sv::CONTEXT),
+ ("uk", uk::CONTEXT),
+];
/// The languages of the shared tables' columns, in column order.
const SHARED_COLUMNS: [&str; 5] = ["de", "fr", "es", "ja", "zh"];
diff --git a/crates/ui-egui/src/menus/ui_commands.rs b/crates/ui-egui/src/menus/ui_commands.rs
index 4a75a994e..5d927fba7 100644
--- a/crates/ui-egui/src/menus/ui_commands.rs
+++ b/crates/ui-egui/src/menus/ui_commands.rs
@@ -71,7 +71,7 @@ pub const UI_COMMANDS: &[(&str, &str, Option<&str>, &str)] = &[
"app.language",
"Interface Language",
None,
- "{lang?: \"\"|de|fr|es|ja|zh|ar|pt-br|it|uk|ru|cs|pl|ka} — menus and panel names (the macOS menu bar follows at once); without lang, opens Preferences, where it is the first setting",
+ "{lang?: \"\"|de|fr|es|ja|zh|ar|pt-br|it|uk|ru|cs|pl|ka|sv} — menus and panel names (the macOS menu bar follows at once); without lang, opens Preferences, where it is the first setting",
),
(
"app.flattener",
diff --git a/packaging/macos/Info.plist.in b/packaging/macos/Info.plist.in
index 03d7cb8e4..28bd0cd84 100644
--- a/packaging/macos/Info.plist.in
+++ b/packaging/macos/Info.plist.in
@@ -22,6 +22,7 @@
<string>pl</string>
<string>pt-BR</string>
<string>ru</string>
+ <string>sv</string>
<string>uk</string>
<string>zh-Hans</string>
</array>