From 39fa6da5dd77ce2e12e81530fa18c2eac722c1f2 Mon Sep 17 00:00:00 2001
From: Amruth Pillai
Date: Thu, 17 Mar 2022 12:16:25 +0100
Subject: [PATCH] feat(i18n): add arabic language to i18n locale
---
README.md | 1 +
client/config/languages.ts | 1 +
client/next-i18next.config.js | 2 +-
client/pages/_document.tsx | 1 +
docs/docs/index.mdx | 3 ++-
5 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 6451d215..bb1a10f6 100644
--- a/README.md
+++ b/README.md
@@ -36,6 +36,7 @@ You have complete control over what goes into your resume, how it looks, what co
## Languages
+- Arabic (اَلْعَرَبِيَّةُ)
- Bengali (বাংলা)
- Chinese (中文)
- Danish (Dansk)
diff --git a/client/config/languages.ts b/client/config/languages.ts
index 28831d63..0489eac0 100644
--- a/client/config/languages.ts
+++ b/client/config/languages.ts
@@ -5,6 +5,7 @@ export type Language = {
};
export const languages: Language[] = [
+ { code: 'ar', name: 'Arabic', localName: 'اَلْعَرَبِيَّةُ' },
{ code: 'bn', name: 'Bengali', localName: 'বাংলা' },
{ code: 'da', name: 'Danish', localName: 'Dansk' },
{ code: 'de', name: 'German', localName: 'Deutsch' },
diff --git a/client/next-i18next.config.js b/client/next-i18next.config.js
index ae899498..72b17010 100644
--- a/client/next-i18next.config.js
+++ b/client/next-i18next.config.js
@@ -3,7 +3,7 @@ const path = require('path');
const i18nConfig = {
i18n: {
defaultLocale: 'en',
- locales: ['bn', 'da', 'de', 'en', 'es', 'fr', 'hi', 'it', 'kn', 'pl', 'ta', 'tr', 'zh'],
+ locales: ['ar', 'bn', 'da', 'de', 'en', 'es', 'fr', 'hi', 'it', 'kn', 'pl', 'ta', 'tr', 'zh'],
},
nsSeparator: '.',
localePath: path.resolve('./public/locales'),
diff --git a/client/pages/_document.tsx b/client/pages/_document.tsx
index d5e328c3..6beab657 100644
--- a/client/pages/_document.tsx
+++ b/client/pages/_document.tsx
@@ -4,6 +4,7 @@ import NextDocument, { DocumentContext, Head, Html, Main, NextScript } from 'nex
const Document: NextPage = () => (
+
diff --git a/docs/docs/index.mdx b/docs/docs/index.mdx
index c2871c80..bd3ea5c7 100644
--- a/docs/docs/index.mdx
+++ b/docs/docs/index.mdx
@@ -44,6 +44,7 @@ You have complete control over what goes into your resume, how it looks, what co
## Languages
+- Arabic (اَلْعَرَبِيَّةُ)
- Bengali (বাংলা)
- Chinese (中文)
- Danish (Dansk)
@@ -71,11 +72,11 @@ Reactive Resume would be nothing without the folks who supported me and kept the
#### [💸 PayPal](https://paypal.me/RajaRajanA)
## Contributors Wall
+
-
_Note: It may take up to 24h for the [contrib.rocks](https://contrib.rocks/image?repo=AmruthPillai/Reactive-Resume) plugin to update because it's refreshed once a day._
## License