From 47d546dad5a2900ca1792d84e4aec8bf814fa18b Mon Sep 17 00:00:00 2001 From: Tmpod Date: Mon, 5 Jun 2023 12:37:08 +0000 Subject: [PATCH] Fix regional language variants not being properly accessed (#152) --- recommended-instances.json | 3 ++- src/shared/i18next.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/recommended-instances.json b/recommended-instances.json index f69c6da..27e7e02 100644 --- a/recommended-instances.json +++ b/recommended-instances.json @@ -3,7 +3,8 @@ "da": ["feddit.dk"], "de": ["feddit.de"], "pt": ["lemmy.pt"], - "pt_BR": ["lemmy.pt"], + "pt-PT": ["lemmy.pt"], + "pt-BR": ["lemmy.pt"], "eu": ["lemmy.eus"], "ja": ["tabinezumi.net", "lm.korako.me"], "it": ["feddit.it"], diff --git a/src/shared/i18next.ts b/src/shared/i18next.ts index 8adbff1..c878fd9 100644 --- a/src/shared/i18next.ts +++ b/src/shared/i18next.ts @@ -42,11 +42,11 @@ export const languages = [ { resource: it, code: "it", name: "Italiano" }, { resource: ja, code: "ja", name: "日本語" }, { resource: ko, code: "ko", name: "한국어" }, - { resource: nb_NO, code: "nb_NO", name: "Norsk (bokmål)" }, + { resource: nb_NO, code: "nb-NO", name: "Norsk (bokmål)" }, { resource: nl, code: "nl", name: "Nederlands" }, { resource: pl, code: "pl", name: "Polski" }, { resource: pt, code: "pt", name: "Português" }, - { resource: pt_BR, code: "pt_BR", name: "Português (Brasil)" }, + { resource: pt_BR, code: "pt-BR", name: "Português (Brasil)" }, { resource: ru, code: "ru", name: "Русский" }, { resource: zh, code: "zh", name: "中文" }, ];