feat(i18n): add arabic language to i18n locale

This commit is contained in:
Amruth Pillai 2022-03-17 12:16:25 +01:00
parent 7fd96a4540
commit 39fa6da5dd
No known key found for this signature in database
GPG Key ID: E3C57DF9B80855AD
5 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -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' },

View File

@ -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'),

View File

@ -4,6 +4,7 @@ import NextDocument, { DocumentContext, Head, Html, Main, NextScript } from 'nex
const Document: NextPage = () => (
<Html>
<Head />
<body>
<Main />
<NextScript />

View File

@ -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
<a href="https://github.com/AmruthPillai/Reactive-Resume/graphs/contributors">
<img src="https://contrib.rocks/image?repo=AmruthPillai/Reactive-Resume" />
</a>
_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