Skip to content

Commit

Permalink
Add Portuguese localization
Browse files Browse the repository at this point in the history
  • Loading branch information
curtgrimes committed Jan 13, 2022
1 parent 1fc373d commit 6d901f7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/i18n/locale.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// originally from https://github.com/valentine195/obsidian-leaflet-plugin/blob/master/src/l10n/locale.ts
import en from "./locales/en";
import pt from "./locales/pt";

const locale = window.moment.locale;

const localeMap: { [k: string]: Partial<typeof en> } = {
en,
pt,
};

const userLocale = localeMap[locale()];
Expand Down
11 changes: 11 additions & 0 deletions src/i18n/locales/pt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default {
Mute: "Silenciar",
Unmute: "Ouvir",
"Stop metronome": "Pare o metrônomo",
"Start metronome": "Iniciar o metrônomo",
"%1 BPM": "%1 BPM",
"Invalid BPM": "BPM inválido",
"Invalid or unsupported meter": "Métrica inválida ou não suportada",
"Stopping in %1...": "Parando em %1...",
Cancel: "Cancelar",
};

0 comments on commit 6d901f7

Please sign in to comment.