From 137ec165808ad414792692f5f68e3635b1b14dc6 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Fri, 24 Jan 2025 20:20:27 +0100 Subject: [PATCH 1/3] Enable Chinese (Simplified) locale --- src/i18n/translations.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/i18n/translations.ts b/src/i18n/translations.ts index 8d81bf8..32323e5 100644 --- a/src/i18n/translations.ts +++ b/src/i18n/translations.ts @@ -13,6 +13,7 @@ import es from "./translations/es.json"; import fr from "./translations/fr.json"; import nl from "./translations/nl.json"; import ru from "./translations/ru.json"; +import zhHans from "./translations/zh-Hans.json"; export const languages = { ar: { autonym: "العربية", dir: "rtl" }, @@ -22,6 +23,7 @@ export const languages = { fr: { autonym: "Français", dir: "ltr" }, nl: { autonym: "Nederlands", dir: "ltr" }, ru: { autonym: "Русский", dir: "ltr" }, + "zh-Hans": { autonym: "中文(简体)", dir: "ltr" }, }; export const strings: Record> = { @@ -32,6 +34,7 @@ export const strings: Record> = { fr, nl, ru, + "zh-Hans": zhHans, } as const; export const defaultLanguage: keyof typeof strings = "en"; From dd4efd0c216409a48a6fe30771e14550a5433fdb Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Fri, 24 Jan 2025 20:34:26 +0100 Subject: [PATCH 2/3] Update CHANGELOG --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44bef88..3e52392 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ and this project adheres to ### Added - Share2Fedi now adds a proper user agent header with project information +- new translation languages + - Simplified Chinese (thx [Poesty](https://social.qunn.eu/user)!) ### Changed From 9fdada740a1fdf08191ffbd9385cd76dbeaf9967 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Sat, 25 Jan 2025 09:24:22 +0100 Subject: [PATCH 3/3] Fix CHANGELOG.md headings --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e52392..fb3e0bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,7 +33,7 @@ and this project adheres to ## [3.1.0] - 2024-02-12 -## Added +### Added - new translation languages - Nederlands/Dutch (thx [Heimen](https://github.com/Vistaus)!)