commit a85880eab0ea918bd7e679709459dce865cbb9e3 Author: Lea Date: Tue Jun 6 22:53:15 2023 +0200 Initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..4a8b5f0 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# AutoMod Translations + +![](https://weblate.insrt.uk/widgets/automod/-/svg-badge.svg) + +> **DO NOT** create pull requests directly to this repository! + +Translations are handled via Weblate - Contribute [here](https://weblate.insrt.uk/projects/automod/). diff --git a/bot/de.json b/bot/de.json new file mode 100644 index 0000000..72e136c --- /dev/null +++ b/bot/de.json @@ -0,0 +1,3 @@ +{ + "test": "Testnachricht in Deutsch" +} \ No newline at end of file diff --git a/bot/en.json b/bot/en.json new file mode 100644 index 0000000..c1d232a --- /dev/null +++ b/bot/en.json @@ -0,0 +1,6 @@ +{ + "test": "Test message in english", + "i18n_test": "They shat themselves", + "i18n_test_f": "She shat herself", + "i18n_test_m": "He shat himself" +} \ No newline at end of file diff --git a/langs.json b/langs.json new file mode 100644 index 0000000..af5285b --- /dev/null +++ b/langs.json @@ -0,0 +1,15 @@ +{ + "$schema": "./langs.schema.json", + "langs": { + "en": { + "name": "English", + "nameLocalised": "English", + "emoji": "🇬🇧" + }, + "de": { + "name": "German", + "nameLocalised": "Deutsch", + "emoji": "🇩🇪" + } + } +} \ No newline at end of file diff --git a/langs.schema.json b/langs.schema.json new file mode 100644 index 0000000..eb74063 --- /dev/null +++ b/langs.schema.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "AutoMod i18n language definition file", + "type": "object", + "properties": { + "langs": { + "patternProperties": { + ".*": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "Language name" + }, + "nameLocalised": { + "type": "string", + "title": "Localised language name" + }, + "flag": { + "type": "string", + "title": "Language flag" + } + } + } + } + } + } +} \ No newline at end of file