Skip to content

Commit

Permalink
feat: pl-PL locale (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
UberDudePL authored Mar 5, 2024
1 parent 3356d54 commit 38309a8
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ Supported Languages:
* 🇨🇮 **Hindi** - `hi`
* 🇪🇸 **Spanish** - `es`
* 🇸🇦 **Arabic** - `ar` (by [@mohmadhabib](https://github.com/mohmadhabib))
* pl **Polish** - `pl`

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
3 changes: 2 additions & 1 deletion docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ version: '3.8'

services:
mafl:
container_name: mafl #change as needed
image: hywax/mafl
restart: unless-stopped
ports:
Expand All @@ -24,7 +25,7 @@ services:
### Docker run
```shell
docker run -p 3000:3000 -v ./config.yml:/app/data/config.yml hywax/mafl
docker run --name mafl -p 3000:3000 -v ./config.yml:/app/data/config.yml hywax/mafl
```

### Docker volumes
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`
Values: `en`, `ru`, `zh`, `hi`, `es`, `ar`, `pl`

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

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

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

},

"error": {
"title": "Błąd",
"page404": "Strona nie istnieje!",
"description": "Oops! Pojawił się nieoczekiwany błąd",
"action": "Sprawdź dokumentacja"
},

"update": {
"message": "Dostępna jest nowa wersja",
"visit": "Odwiedź github →"
}
}
8 changes: 7 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,13 @@ export default defineNuxtConfig({
iso: 'ar-SA',
name: 'اللغة السعودية',
file: 'ar-SA.json',
},
}
{
code: 'pl',
iso: 'pl-PL',
name: 'Polski',
file: 'pl-pl.json',
},
],
strategy: 'no_prefix',
langDir: 'locales',
Expand Down

0 comments on commit 38309a8

Please sign in to comment.