A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
feat(i18n): change location of translation files
Amruth Pillai69d3cd899ce4
diff --git a/apps/client/src/libs/lingui.ts b/apps/client/src/libs/lingui.tsindex cf680e105..0812d4a5b 100644--- a/apps/client/src/libs/lingui.ts+++ b/apps/client/src/libs/lingui.ts@@ -1,15 +1,15 @@import { i18n } from "@lingui/core";import { t } from "@lingui/macro";+export const defaultLocale = "en-US";+export const getLocales = () => ({"en-US": t`English`,"de-DE": t`German`,});-export const defaultLocale = "en-US";-export async function dynamicActivate(locale: string) {- const { messages } = await import(`../locales/${locale}.po`);+ const { messages } = await import(`../locales/${locale}/messages.po`);i18n.load(locale, messages);i18n.activate(locale);diff --git a/apps/client/src/locales/de-DE.po b/apps/client/src/locales/de-DE/messages.posimilarity index 99%rename from apps/client/src/locales/de-DE.porename to apps/client/src/locales/de-DE/messages.poindex 5ff61abef..c445d62d3 100644--- a/apps/client/src/locales/de-DE.po+++ b/apps/client/src/locales/de-DE/messages.po@@ -1,6 +1,6 @@msgid ""msgstr ""-"POT-Creation-Date: 2023-11-10 08:58+0100\n"+"POT-Creation-Date: 2023-11-10 09:26+0100\n""MIME-Version: 1.0\n""Content-Type: text/plain; charset=utf-8\n""Content-Transfer-Encoding: 8bit\n"diff --git a/apps/client/src/locales/en-US.po b/apps/client/src/locales/en-US/messages.posimilarity index 99%rename from apps/client/src/locales/en-US.porename to apps/client/src/locales/en-US/messages.poindex a3194a3e7..54630755b 100644--- a/apps/client/src/locales/en-US.po+++ b/apps/client/src/locales/en-US/messages.po@@ -1,6 +1,6 @@msgid ""msgstr ""-"POT-Creation-Date: 2023-11-10 08:58+0100\n"+"POT-Creation-Date: 2023-11-10 09:26+0100\n""MIME-Version: 1.0\n""Content-Type: text/plain; charset=utf-8\n""Content-Transfer-Encoding: 8bit\n"@@ -11,6 +11,10 @@ msgstr ""msgid "You have enabled two-factor authentication successfully."msgstr "You have enabled two-factor authentication successfully."+#: apps/client/src/pages/builder/sidebars/left/sections/shared/section-options.tsx:113+msgid "{value, plural, one {Column} other {Columns}}"+msgstr "{value, plural, one {Column} other {Columns}}"+#: apps/client/src/pages/builder/sidebars/right/sections/information.tsx:20msgid "<0>I built Reactive Resume mostly by myself during my spare time, with a lot of help from other great open-source contributors.</0><1>If you like the app and want to support keeping it free forever, please donate whatever you can afford to give.</1><2>Your donations could be tax-deductible, depending on your location.</2>"msgstr "<0>I built Reactive Resume mostly by myself during my spare time, with a lot of help from other great open-source contributors.</0><1>If you like the app and want to support keeping it free forever, please donate whatever you can afford to give.</1><2>Your donations could be tax-deductible, depending on your location.</2>"diff --git a/lingui.config.ts b/lingui.config.tsindex 29507ee32..ebe7eec0b 100644--- a/lingui.config.ts+++ b/lingui.config.ts@@ -1,11 +1,12 @@import type { LinguiConfig } from "@lingui/conf";const config: LinguiConfig = {- locales: ["en-US", "de-DE"],+ format: "po",sourceLocale: "en-US",+ locales: ["en-US", "de-DE"],catalogs: [{- path: "<rootDir>/apps/client/src/locales/{locale}",+ path: "<rootDir>/apps/client/src/locales/{locale}/messages",include: ["<rootDir>/apps/client/src"],},],