add example locale files for the different configuration options
This commit is contained in:
parent
7ecba11199
commit
1be0679f18
@ -7,6 +7,7 @@
|
|||||||
- Basic support for json array values
|
- Basic support for json array values
|
||||||
- Settings option to opt-out code assistance inside editor
|
- Settings option to opt-out code assistance inside editor
|
||||||
- Support key completion and annotation for Kotlin language
|
- Support key completion and annotation for Kotlin language
|
||||||
|
- Example locale files for all configuration options
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Update dependencies
|
- Update dependencies
|
||||||
|
@ -48,6 +48,8 @@ Most common use case is for translating Webapps or simple Java Applications. Tra
|
|||||||
- Select the created directory (optional: define the preferred locale to view) and press Ok
|
- Select the created directory (optional: define the preferred locale to view) and press Ok
|
||||||
- Translations can now be created / edited or deleted
|
- Translations can now be created / edited or deleted
|
||||||
|
|
||||||
|
Examples for the configuration can be found in the [/example](https://github.com/marhali/easy-i18n/tree/main/example) folder.
|
||||||
|
|
||||||
---
|
---
|
||||||
Plugin based on the [IntelliJ Platform Plugin Template][template].
|
Plugin based on the [IntelliJ Platform Plugin Template][template].
|
||||||
|
|
||||||
|
26
example/json/locale-de.json
Normal file
26
example/json/locale-de.json
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"alpha": {
|
||||||
|
"first": "Beispiel Übersetzung",
|
||||||
|
"second": "Andere Übersetzung"
|
||||||
|
},
|
||||||
|
"beta": {
|
||||||
|
"title": "Ein Titel",
|
||||||
|
"nested": {
|
||||||
|
"title": "Ein verschachtelter Titel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gamma": {
|
||||||
|
"title": "Gamma Titel",
|
||||||
|
"array": {
|
||||||
|
"simple": [
|
||||||
|
"Erstes Element",
|
||||||
|
"Zweites Element"
|
||||||
|
],
|
||||||
|
"escaped": [
|
||||||
|
"Erstes;Element",
|
||||||
|
"Zweites Element",
|
||||||
|
"Drittes;Element"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
26
example/json/locale-en.json
Normal file
26
example/json/locale-en.json
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"alpha": {
|
||||||
|
"first": "example translation",
|
||||||
|
"second": "another translation"
|
||||||
|
},
|
||||||
|
"beta": {
|
||||||
|
"title": "some title",
|
||||||
|
"nested": {
|
||||||
|
"title": "some nested title"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gamma": {
|
||||||
|
"title": "gamma title",
|
||||||
|
"array": {
|
||||||
|
"simple": [
|
||||||
|
"first element",
|
||||||
|
"second element"
|
||||||
|
],
|
||||||
|
"escaped": [
|
||||||
|
"first;element",
|
||||||
|
"second element",
|
||||||
|
"third;element"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
5
example/modularized-json/locale-de/account.json
Normal file
5
example/modularized-json/locale-de/account.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"subscription": "Abonnement",
|
||||||
|
"support": "Unterstützung",
|
||||||
|
"delete": "Löschen"
|
||||||
|
}
|
10
example/modularized-json/locale-de/auth.json
Normal file
10
example/modularized-json/locale-de/auth.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"title": [
|
||||||
|
"Ein",
|
||||||
|
"array",
|
||||||
|
"Titel"
|
||||||
|
],
|
||||||
|
"login": "Einloggen",
|
||||||
|
"logout": "Ausloggen",
|
||||||
|
"register": "Registrieren"
|
||||||
|
}
|
10
example/modularized-json/locale-de/user.json
Normal file
10
example/modularized-json/locale-de/user.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"username": "Benutzername",
|
||||||
|
"email": "Email-Adresse",
|
||||||
|
"address": {
|
||||||
|
"zip": "Postleitzahl",
|
||||||
|
"city": "Ort",
|
||||||
|
"street": "Straße",
|
||||||
|
"number": "Hausnummer"
|
||||||
|
}
|
||||||
|
}
|
5
example/modularized-json/locale-en/account.json
Normal file
5
example/modularized-json/locale-en/account.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"subscription": "Subscription",
|
||||||
|
"support": "Support",
|
||||||
|
"delete": "Delete"
|
||||||
|
}
|
10
example/modularized-json/locale-en/auth.json
Normal file
10
example/modularized-json/locale-en/auth.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"title": [
|
||||||
|
"Some",
|
||||||
|
"array",
|
||||||
|
"title"
|
||||||
|
],
|
||||||
|
"login": "Login",
|
||||||
|
"logout": "Logout",
|
||||||
|
"register": "Register"
|
||||||
|
}
|
10
example/modularized-json/locale-en/user.json
Normal file
10
example/modularized-json/locale-en/user.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"username": "Username",
|
||||||
|
"email": "Email Address",
|
||||||
|
"address": {
|
||||||
|
"zip": "ZIP code",
|
||||||
|
"city": "City",
|
||||||
|
"street": "Street",
|
||||||
|
"number": "House number"
|
||||||
|
}
|
||||||
|
}
|
6
example/resource-bundle/locale_de.properties
Normal file
6
example/resource-bundle/locale_de.properties
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
account.subscription=Abonnement
|
||||||
|
auth.login=Einloggen
|
||||||
|
auth.logout=Ausloggen
|
||||||
|
auth.register=Registrieren
|
||||||
|
user.email=Email-Adresse
|
||||||
|
user.username=Benutzername
|
6
example/resource-bundle/locale_en.properties
Normal file
6
example/resource-bundle/locale_en.properties
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
account.subscription=Subscription
|
||||||
|
auth.login=Login
|
||||||
|
auth.logout=Logout
|
||||||
|
auth.register=Register
|
||||||
|
user.email=Email Address
|
||||||
|
user.username=Username
|
Loading…
x
Reference in New Issue
Block a user