diff --git a/CHANGELOG.md b/CHANGELOG.md index 44bef88..fb3e0bf 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 @@ -31,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)!) 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";