diff --git a/.github/workflows/check_frontend.yml b/.github/workflows/check_frontend.yml index 02c5938..16920ce 100644 --- a/.github/workflows/check_frontend.yml +++ b/.github/workflows/check_frontend.yml @@ -5,6 +5,8 @@ on: paths: - frontend/** - .github/workflows/check_frontend.yml + paths-ignore: + - frontend/src/i18n/locales/** jobs: lint: diff --git a/.github/workflows/deploy_frontend.yml b/.github/workflows/deploy_frontend.yml index f14ff2b..f27e62f 100644 --- a/.github/workflows/deploy_frontend.yml +++ b/.github/workflows/deploy_frontend.yml @@ -23,6 +23,11 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: yarn + cache-dependency-path: '**/yarn.lock' - name: Install Vercel CLI run: npm install --global vercel@latest - name: Pull Vercel Environment Information diff --git a/frontend/src/i18n/locales/pt_PT/common.json b/frontend/src/i18n/locales/pt-PT/common.json similarity index 100% rename from frontend/src/i18n/locales/pt_PT/common.json rename to frontend/src/i18n/locales/pt-PT/common.json diff --git a/frontend/src/i18n/locales/pt_PT/event.json b/frontend/src/i18n/locales/pt-PT/event.json similarity index 100% rename from frontend/src/i18n/locales/pt_PT/event.json rename to frontend/src/i18n/locales/pt-PT/event.json diff --git a/frontend/src/i18n/locales/pt_PT/help.json b/frontend/src/i18n/locales/pt-PT/help.json similarity index 100% rename from frontend/src/i18n/locales/pt_PT/help.json rename to frontend/src/i18n/locales/pt-PT/help.json diff --git a/frontend/src/i18n/locales/pt_PT/home.json b/frontend/src/i18n/locales/pt-PT/home.json similarity index 100% rename from frontend/src/i18n/locales/pt_PT/home.json rename to frontend/src/i18n/locales/pt-PT/home.json diff --git a/frontend/src/i18n/locales/pt_PT/privacy.json b/frontend/src/i18n/locales/pt-PT/privacy.json similarity index 100% rename from frontend/src/i18n/locales/pt_PT/privacy.json rename to frontend/src/i18n/locales/pt-PT/privacy.json diff --git a/frontend/src/i18n/options.ts b/frontend/src/i18n/options.ts index b66dabf..6db015c 100644 --- a/frontend/src/i18n/options.ts +++ b/frontend/src/i18n/options.ts @@ -5,7 +5,7 @@ export const defaultNS = 'common' export const cookieName = 'i18next' export const languages = [ fallbackLng, - 'en-GB', 'de', 'es', 'fr', 'hi', 'id', 'ja', 'ko', 'pl', 'pt-BR', 'ru', + 'en-GB', 'de', 'es', 'fr', 'hi', 'id', 'it', 'ja', 'ko', 'pl', 'pt-PT', 'pt-BR', 'ru', ] as const export const getOptions = (lng = fallbackLng, ns: InitOptions['ns'] = defaultNS): InitOptions => ({ @@ -65,6 +65,11 @@ export const languageDetails: Record weekStart: 1, timeFormat: '24h', }, + 'it': { // Italian + name: 'Italiano', + weekStart: 1, + timeFormat: '24h', + }, 'ja': { // Japanese name: '日本語', weekStart: 0, @@ -80,6 +85,11 @@ export const languageDetails: Record weekStart: 1, timeFormat: '12h', }, + 'pt-PT': { // Portuguese (Portugal) + name: 'Português (do Portugal)', + weekStart: 0, + timeFormat: '24h', + }, 'pt-BR': { // Portuguese (Brazil) name: 'Português (do Brasil)', weekStart: 0,