Skip to content

Commit

Permalink
feat: hindi language
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Jan 20, 2024
1 parent 4557a16 commit 09b2154
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Supported Languages:
* 🇬🇧 **English** - `en`
* 🇷🇺 **Russian** - `ru`
* 🇨🇳 **Chinese** - `zh`
* 🇨🇮 **Hindi** - `hi`

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`
Values: `en`, `ru`, `zh`, `hi`

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`
Поддерживаемые значения: `en`, `ru`, `zh`, `hi`

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

Expand Down
17 changes: 17 additions & 0 deletions locales/hi-IN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"service": {

},

"error": {
"title": "गलती",
"page404": "पृष्ठ नहीं मिला!",
"description": "उफ़! कोई अप्रत्याशित त्रुटि हुई है",
"action": "दस्तावेज़ीकरण पर जाएँ"
},

"update": {
"message": "एक नया संस्करण उपलब्ध है",
"visit": "पर जाएँ github →"
}
}
6 changes: 6 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ export default defineNuxtConfig({
name: '中文',
file: 'zh-CN.json',
},
{
code: 'hi',
iso: 'hi-IN',
name: 'हिंदी',
file: 'hi-IN.json',
},
],
strategy: 'no_prefix',
langDir: 'locales',
Expand Down

0 comments on commit 09b2154

Please sign in to comment.