Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Polish translation added #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 7 additions & 0 deletions webapp/i18n/pl_PL.json
Original file line number Diff line number Diff line change
@@ -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"
}
7 changes: 6 additions & 1 deletion webapp/src/plugin/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
}