diff --git a/README.md b/README.md index f0533d0..f430953 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index d623a73..9ab4d6a 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -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` diff --git a/docs/ru/reference/configuration.md b/docs/ru/reference/configuration.md index c939f88..2be0ccc 100644 --- a/docs/ru/reference/configuration.md +++ b/docs/ru/reference/configuration.md @@ -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` diff --git a/nuxt.config.ts b/nuxt.config.ts index 5f0a1c6..280ca6b 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -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', diff --git a/src/types/config.d.ts b/src/types/config.d.ts index 4dc33cc..8c42783 100644 --- a/src/types/config.d.ts +++ b/src/types/config.d.ts @@ -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