mirror of
https://github.com/NickKaramoff/toot
synced 2025-02-05 20:03:34 +01:00
Enable Chinese (Simplified) locale (#85)
This commit is contained in:
commit
15f4dddfcf
@ -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)!)
|
||||
|
@ -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<keyof typeof languages, Record<string, string>> = {
|
||||
@ -32,6 +34,7 @@ export const strings: Record<keyof typeof languages, Record<string, string>> = {
|
||||
fr,
|
||||
nl,
|
||||
ru,
|
||||
"zh-Hans": zhHans,
|
||||
} as const;
|
||||
|
||||
export const defaultLanguage: keyof typeof strings = "en";
|
||||
|
Loading…
x
Reference in New Issue
Block a user