diff --git a/src/i18n/locale.ts b/src/i18n/locale.ts index 293a10d..b281c1e 100644 --- a/src/i18n/locale.ts +++ b/src/i18n/locale.ts @@ -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 } = { en, + pt, }; const userLocale = localeMap[locale()]; diff --git a/src/i18n/locales/pt.ts b/src/i18n/locales/pt.ts new file mode 100644 index 0000000..310b4b9 --- /dev/null +++ b/src/i18n/locales/pt.ts @@ -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", +};