Skip to content

Commit

Permalink
docs: german and greek locale
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Jul 13, 2024
1 parent 83300f1 commit a2a761d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ Supported Languages:
* 🇸🇦 **Arabic** - `ar` (by [@mohmadhabib](https://github.com/mohmadhabib))
* 🇵🇱 **Polish** - `pl` (by [@UberDudePL](https://github.com/UberDudePL))
* 🇫🇷 **France** - `fr` (by [@maxim31cote](https://github.com/maxim31cote))
* 🇩🇪 **German** - `de` (by [@gehno](https://github.com/gehno))
* 🇬🇷 **Greek** - `gr` (by [@sthivaios](https://github.com/sthivaios))

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`, `ar`, `pl`, `fr`
Values: `en`, `ru`, `zh`, `hi`, `es`, `ar`, `pl`, `fr`, `de`, `gr`

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

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

Expand Down
12 changes: 12 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,18 @@ export default defineNuxtConfig({
name: 'Français',
file: 'fr-FR.json',
},
{
code: 'de',
iso: 'de-DE',
name: 'Deutsch',
file: 'de-DE.json',
},
{
code: 'gr',
iso: 'gr-GR',
name: 'Ελληνικά',
file: 'gr-GR.json',
},
],
strategy: 'no_prefix',
langDir: 'locales',
Expand Down
2 changes: 1 addition & 1 deletion src/types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface Layout {

export interface Config {
title?: string
lang?: 'en' | 'ru' | 'zh' | 'hi' | 'es' | 'ar' | 'pl' | 'fr'
lang?: 'en' | 'ru' | 'zh' | 'hi' | 'es' | 'ar' | 'pl' | 'fr' | 'de' | 'gr'
theme?: 'system' | 'light' | 'dark' | 'deep' | 'sepia' | 'bluer'
layout?: Layout
behaviour?: Behaviour
Expand Down

0 comments on commit a2a761d

Please sign in to comment.