From 9f6a8cc98bbd44d7a6ae08c7a15c91727f0e3f84 Mon Sep 17 00:00:00 2001 From: marshmallow Date: Sat, 4 May 2024 06:35:29 +1000 Subject: [PATCH] read from public/locales/ --- public/locales/en/translations.json | 12 ++++++++++++ src/i18n/ui.ts | 15 +++------------ 2 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 public/locales/en/translations.json diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json new file mode 100644 index 0000000..7c6f330 --- /dev/null +++ b/public/locales/en/translations.json @@ -0,0 +1,12 @@ +{ + "goals.independent.title": "Independent", + "goals.independent": "We will fork and maintain Nix, NixPkgs, and NixOS. Additional support for projects such as Nix Darwin and Home Manager will be considered.", + "goals.gov.title": "Governance", + "goals.gov": "A democratic model of governance with elected positions will be used to manage the project. A steering committee will provide direction with additional committees handling specific logistical tasks. Features or individual projects will be owned by Special Interest Groups. SIGs will collaborate within Working Groups to achieve their goals. Each committee and group will have its goals, requirements, and management process clearly defined.", + "goals.stabilization.title": "Stabilization", + "goals.stabilization": "User-friendly features such as the Nix v3 CLI will be enabled by default. Nix Flakes are used too heavily to remove or change and will instead be stabilized as a v0 in its current state with any future work being handled by a Special Interest Group.", + "goals.infa.title": "Infastructure", + "goals.infa": "We will build and maintain the tools and infrastructure necessary to keep the ecosystem healthy, including Continuous Integration and Binary Caching.", + "goals.education.title": "Education", + "goals.education": "Unified documentation, tutorials, guides, and examples will provide a better onboarding experience for newcomers and a faster iteration cycle for experts." +} diff --git a/src/i18n/ui.ts b/src/i18n/ui.ts index 7ba7664..a6838b0 100644 --- a/src/i18n/ui.ts +++ b/src/i18n/ui.ts @@ -1,3 +1,5 @@ +import en from "../../public/locales/en/translations.json" + export const languages = { en: 'English' }; @@ -5,16 +7,5 @@ export const languages = { export const defaultLang = 'en'; export const ui = { - en: { - 'goals.independent.title': 'Independent', - 'goals.independent': 'We will fork and maintain Nix, NixPkgs, and NixOS. Additional support for projects such as Nix Darwin and Home Manager will be considered.', - 'goals.gov.title': 'Governance', - 'goals.gov': 'A democratic model of governance with elected positions will be used to manage the project. A steering committee will provide direction with additional committees handling specific logistical tasks. Features or individual projects will be owned by Special Interest Groups. SIGs will collaborate within Working Groups to achieve their goals. Each committee and group will have its goals, requirements, and management process clearly defined.', - 'goals.stabilization.title': 'Stabilization', - 'goals.stabilization': 'User-friendly features such as the Nix v3 CLI will be enabled by default. Nix Flakes are used too heavily to remove or change and will instead be stabilized as a v0 in its current state with any future work being handled by a Special Interest Group.', - 'goals.infa.title': 'Infastructure', - 'goals.infa': 'We will build and maintain the tools and infrastructure necessary to keep the ecosystem healthy, including Continuous Integration and Binary Caching.', - 'goals.education.title': 'Education', - 'goals.education': 'Unified documentation, tutorials, guides, and examples will provide a better onboarding experience for newcomers and a faster iteration cycle for experts.', - }, + en, } as const;