Skip to content

Commit

Permalink
feat: arabic language (#20)
Browse files Browse the repository at this point in the history
* Added Arabic Locale

* feat: arabian language

---------

Co-authored-by: Mohammad Habib <[email protected]>
  • Loading branch information
hywax and mohmadhabib authored Jan 20, 2024
1 parent e64c0dd commit 92c361e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Supported Languages:
* 🇨🇳 **Chinese** - `zh`
* 🇨🇮 **Hindi** - `hi`
* 🇪🇸 **Spanish** - `es`
* 🇸🇦 **Arabic** - `ar` (by @mohmadhabib)

If you haven't found your language, it can easily be added! Use the instructions in the section [contributing](https://mafl.hywax.space/community/contributing.html) on docs.

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Set the desired language with:
lang: ru
```

Values: `en`, `ru`, `zh`, `hi`, `es`
Values: `en`, `ru`, `zh`, `hi`, `es`, `ar`

Default: `en`

Expand Down
2 changes: 1 addition & 1 deletion docs/ru/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ title: Моя домашняя страница
lang: ru
```

Поддерживаемые значения: `en`, `ru`, `zh`, `hi`, `es`
Поддерживаемые значения: `en`, `ru`, `zh`, `hi`, `es`, `ar`

Значение по умолчанию: `en`

Expand Down
6 changes: 6 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ export default defineNuxtConfig({
name: 'Español',
file: 'es-ES.json',
},
{
code: 'ar',
iso: 'ar-SA',
name: 'اللغة السعودية',
file: 'ar-SA.json',
},
],
strategy: 'no_prefix',
langDir: 'locales',
Expand Down

0 comments on commit 92c361e

Please sign in to comment.