From 7f1c82cd9185ebb44486a16132eb44d5c2fb747a Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Thu, 24 Mar 2022 11:57:16 +0100 Subject: [PATCH] feat(i18n): add portuguese (pt) language to i18n locales --- README.md | 1 + client/config/languages.ts | 1 + client/next-i18next.config.js | 1 + client/wrappers/DateWrapper.tsx | 1 + docs/docs/index.mdx | 1 + 5 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 30390828..1af5efc9 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ You have complete control over what goes into your resume, how it looks, what co - Kannada (ಕನ್ನಡ) - Malayalam (മലയാളം) - Polish (Polski) +- Portuguese (Português) - Russian (русский) - Spanish (Español) - Tamil (தமிழ்) diff --git a/client/config/languages.ts b/client/config/languages.ts index 7d2a9ee5..be8781b9 100644 --- a/client/config/languages.ts +++ b/client/config/languages.ts @@ -18,6 +18,7 @@ export const languages: Language[] = [ { code: 'ml', name: 'Malayalam', localName: 'മലയാളം' }, { code: 'nl', name: 'Dutch', localName: 'Nederlands' }, { code: 'pl', name: 'Polish', localName: 'Polski' }, + { code: 'pt', name: 'Portuguese', localName: 'Português' }, { code: 'ru', name: 'Russian', localName: 'русский' }, { code: 'ta', name: 'Tamil', localName: 'தமிழ்' }, { code: 'tr', name: 'Turkish', localName: 'Türkçe' }, diff --git a/client/next-i18next.config.js b/client/next-i18next.config.js index 2a077cf5..b7a6d598 100644 --- a/client/next-i18next.config.js +++ b/client/next-i18next.config.js @@ -17,6 +17,7 @@ const i18nConfig = { 'ml', 'nl', 'pl', + 'pt', 'ru', 'ta', 'tr', diff --git a/client/wrappers/DateWrapper.tsx b/client/wrappers/DateWrapper.tsx index 8d4e1042..e049f7e5 100644 --- a/client/wrappers/DateWrapper.tsx +++ b/client/wrappers/DateWrapper.tsx @@ -23,6 +23,7 @@ const DateWrapper: React.FC = ({ children }) => { require('dayjs/locale/ml'); require('dayjs/locale/nl'); require('dayjs/locale/pl'); + require('dayjs/locale/pt'); require('dayjs/locale/ru'); require('dayjs/locale/ta'); require('dayjs/locale/tr'); diff --git a/docs/docs/index.mdx b/docs/docs/index.mdx index de79c6d4..34319df6 100644 --- a/docs/docs/index.mdx +++ b/docs/docs/index.mdx @@ -57,6 +57,7 @@ You have complete control over what goes into your resume, how it looks, what co - Kannada (ಕನ್ನಡ) - Malayalam (മലയാളം) - Polish (Polski) +- Portuguese (Português) - Russian (русский) - Spanish (Español) - Tamil (தமிழ்)