From bec1dffe53da0f0ac6fa8653e632d8d2072df541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20W=C4=85siewicz?= Date: Sat, 27 Nov 2021 20:33:33 +0100 Subject: [PATCH] Polish translation added --- README.md | 1 + webapp/i18n/pl_PL.json | 7 +++++++ webapp/src/plugin/translation.ts | 7 ++++++- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 webapp/i18n/pl_PL.json diff --git a/README.md b/README.md index daf0a40..a832029 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ We are accepting pull requests. Check some cool ideias. * [x] ~~Brazilian Portuguese~~; * [x] ~~French~~; * [x] ~~German~~; + * [x] ~~Polish~~; * [ ] _add your language_; * [ ] Parametrization; * [ ] Meeting room: Random UUID based (a new meeting room for every request) or channel based (the same meeting room for each channel); diff --git a/webapp/i18n/pl_PL.json b/webapp/i18n/pl_PL.json new file mode 100644 index 0000000..0f43290 --- /dev/null +++ b/webapp/i18n/pl_PL.json @@ -0,0 +1,7 @@ +{ + "mattermost_meet_plugin.header.label": "Rozpocznij spotkanie z Google Meet", + "mattermost_meet_plugin.message.pretext": "Rozpocząłeś spotkanie", + "mattermost_meet_plugin.message.title": "Google Meet", + "mattermost_meet_plugin.message.subtitle": "Nazwa spotkania", + "mattermost_meet_plugin.message.button": "DOŁĄCZ DO SPOTKANIA" +} \ No newline at end of file diff --git a/webapp/src/plugin/translation.ts b/webapp/src/plugin/translation.ts index 51a2527..6a8a46c 100644 --- a/webapp/src/plugin/translation.ts +++ b/webapp/src/plugin/translation.ts @@ -2,6 +2,7 @@ import en from 'i18n/en.json'; import pt from 'i18n/pt_BR.json'; import fr from 'i18n/fr_FR.json'; import de from 'i18n/de_DE.json'; +import pl from 'i18n/pl_PL.json'; export const getTranslations= (locale: string) => { switch (locale) { @@ -28,7 +29,11 @@ export const getTranslations= (locale: string) => { case 'de-LI': return de; case 'de-LU': - return de; + return de; + case 'pl': + return pl; + case 'pl-PL': + return pl; } return en; }