From 49fa50c3cd12a693738aa4b6a7ef3fbdd9fc1da6 Mon Sep 17 00:00:00 2001
From: ChobPT <45816945+ChobPT@users.noreply.github.com>
Date: Mon, 15 Apr 2024 17:14:56 +0100
Subject: [PATCH] feat: Adding Portuguese (pt-PT) Translation (#52)
* Added pt-PT translation
Machine translation with human review
* Added Flag
* Update LanguageSelector.tsx
Added Portuguese Option
* Update constants.ts
Added PT Language constant
* Update LanguageSelector.tsx
Moved PT to be in the correct alphabetical order
* Update constants.ts
Moved PT to be in the correct alphabetical order
* Update i18next-toolkit.config.cjs
---
src/client/components/LanguageSelector.tsx | 5 +
src/client/i18next-toolkit.config.cjs | 2 +-
src/client/public/locales/pt/flag.png | Bin 0 -> 3612 bytes
src/client/public/locales/pt/translation.json | 269 ++++++++++++++++++
src/client/utils/constants.ts | 5 +
5 files changed, 280 insertions(+), 1 deletion(-)
create mode 100644 src/client/public/locales/pt/flag.png
create mode 100644 src/client/public/locales/pt/translation.json
diff --git a/src/client/components/LanguageSelector.tsx b/src/client/components/LanguageSelector.tsx
index f81f4e4..9f3d4e4 100644
--- a/src/client/components/LanguageSelector.tsx
+++ b/src/client/components/LanguageSelector.tsx
@@ -34,6 +34,11 @@ export const LanguageSelector: React.FC = React.memo(() => {
key: 'jp',
itemIcon: ,
},
+ {
+ label: 'Português',
+ key: 'pt',
+ itemIcon: ,
+ },
{
label: 'Русский',
key: 'ru',
diff --git a/src/client/i18next-toolkit.config.cjs b/src/client/i18next-toolkit.config.cjs
index ce05a00..d1336de 100644
--- a/src/client/i18next-toolkit.config.cjs
+++ b/src/client/i18next-toolkit.config.cjs
@@ -1,6 +1,6 @@
/** @type {import('@i18next-toolkit/cli').I18nextToolkitConfig} */
const config = {
- locales: ['en', 'zh', 'jp', 'fr', 'de', 'ru'],
+ locales: ['en', 'zh', 'jp', 'fr', 'de', 'pt', 'ru'],
verbose: true,
translator: {
type: 'openai',
diff --git a/src/client/public/locales/pt/flag.png b/src/client/public/locales/pt/flag.png
new file mode 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