Skip to content

Commit

Permalink
pt -> pt_PT (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepzh committed May 17, 2023
1 parent 5dfc78f commit 7f7e4ef
Show file tree
Hide file tree
Showing 48 changed files with 95 additions and 94 deletions.
6 changes: 3 additions & 3 deletions script/crowdin/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ export const SOURCE_LOCALE: timer.SourceLocale = 'en'
export const ALL_TRANS_LOCALES: timer.Locale[] = [
'ja',
'zh_TW',
'pt',
'pt_PT',
]

const CROWDIN_I18N_MAP: Record<CrowdinLanguage, timer.Locale> = {
en: 'en',
ja: 'ja',
'zh-CN': 'zh_CN',
'zh-TW': 'zh_TW',
'pt-PT': 'pt',
'pt-PT': 'pt_PT',
}

const I18N_CROWDIN_MAP: Record<timer.Locale, CrowdinLanguage> = {
en: 'en',
ja: 'ja',
zh_CN: 'zh-CN',
zh_TW: 'zh-TW',
pt: 'pt-PT'
pt_PT: 'pt-PT'
}

export const crowdinLangOf = (locale: timer.Locale) => I18N_CROWDIN_MAP[locale]
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/help-us/progress-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const localeCrowdMap: { [locale in SupportedLocale]: string } = {
es: "es-ES",
ko: "ko",
pl: "pl",
pt: "pt-PT",
pt_PT: "pt-PT",
ru: "ru",
uk: "uk",
fr: "fr",
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/report/table/columns/operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const LOCALE_WIDTH: { [locale in timer.Locale]: number } = {
zh_CN: 290,
ja: 360,
zh_TW: 290,
pt: 400,
pt_PT: 340,
}
const _default = defineComponent({
name: "OperationColumn",
Expand Down
2 changes: 1 addition & 1 deletion src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const locales: { [locale in timer.Locale]: () => Promise<{ default: Language }>
zh_TW: () => import('element-plus/lib/locale/lang/zh-tw'),
en: () => import('element-plus/lib/locale/lang/en'),
ja: () => import('element-plus/lib/locale/lang/ja'),
pt: () => import('element-plus/lib/locale/lang/pt'),
pt_PT: () => import('element-plus/lib/locale/lang/pt'),
}

async function main() {
Expand Down
2 changes: 1 addition & 1 deletion src/guide/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const locales: { [locale in timer.Locale]: () => Promise<{ default: Language }>
zh_TW: () => import('element-plus/lib/locale/lang/zh-tw'),
en: () => import('element-plus/lib/locale/lang/en'),
ja: () => import('element-plus/lib/locale/lang/ja'),
pt: () => import('element-plus/lib/locale/lang/pt'),
pt_PT: () => import('element-plus/lib/locale/lang/pt'),
}

async function main() {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/chrome/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const _default: { [locale in FakedLocale]: any } = {
zh_TW: compile(messages.zh_TW),
en: compile(messages.en),
ja: compile(messages.ja),
pt: compile(messages.pt)
pt_PT: compile(messages.pt_PT)
}

export default _default
10 changes: 5 additions & 5 deletions src/i18n/chrome/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ const messages: Messages<ChromeMessage> = {
contextMenus: contextMenusMessages.ja,
initial: initialMessages.ja,
},
pt: {
meta: metaMessages.pt,
base: baseMessages.pt,
contextMenus: contextMenusMessages.pt,
initial: initialMessages.pt,
pt_PT: {
meta: metaMessages.pt_PT,
base: baseMessages.pt_PT,
contextMenus: contextMenusMessages.pt_PT,
initial: initialMessages.pt_PT,
}
}

Expand Down
7 changes: 4 additions & 3 deletions src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type FakedLocale = timer.Locale
*/
const FEEDBACK_LOCALE: timer.Locale = "en"

export const ALL_LOCALES: timer.Locale[] = ['en', 'zh_CN', 'zh_TW', 'ja', 'pt']
export const ALL_LOCALES: timer.Locale[] = ['en', 'zh_CN', 'zh_TW', 'ja', 'pt_PT']

export const defaultLocale: timer.Locale = "zh_CN"

Expand All @@ -28,8 +28,9 @@ const chrome2I18n: { [key: string]: timer.Locale } = {
'en-US': "en",
'en-GB': "en",
'ja': "ja",
'pt-PT': 'pt',
'pt-BR': 'pt',
'pt': 'pt_PT',
'pt-PT': 'pt_PT',
'pt-BR': 'pt_PT',
}

const translationChrome2I18n: { [key: string]: timer.TranslatingLocale } = {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/analysis-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"visitTitle": "訪問数の傾向"
}
},
"pt": {
"pt_PT": {
"common": {
"focusTotal": "Tempo total de navegação",
"visitTotal": "Total de visitas",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/confirm-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"confirmMsg": "OK",
"cancelMsg": "キャンセル"
},
"pt": {
"pt_PT": {
"confirmMsg": "OK",
"cancelMsg": "Não!"
}
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/dashboard-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"decline": "減らす"
}
},
"pt": {
"pt_PT": {
"heatMap": {
"title0": "Navegou mais de {hour} horas no último ano",
"title1": "Navegue por menos de 1 hora no ano passado",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/data-manage-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"importError": "ファイル形式エラー",
"migrated": "正常にインポートされました"
},
"pt": {
"pt_PT": {
"totalMemoryAlert": "O navegador fornece {size}MB para armazenar dados locais para cada extensão",
"totalMemoryAlert1": "Não é possível determinar a memória máxima disponível permitida pelo navegador",
"usedMemoryAlert": "{size}MB está atualmente em uso",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/habit-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"yAxisHour": "閲覧時間/時間"
}
},
"pt": {
"pt_PT": {
"sizes": {
"fifteen": "Por 15 minutos",
"halfHour": "Por meia hora",
Expand Down
42 changes: 21 additions & 21 deletions src/i18n/message/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,27 +138,27 @@ const _default: Messages<AppMessage> = {
helpUs: helpUsMessages.ja,
button: buttonMessages.ja,
},
pt: {
dataManage: dataManageMessages.pt,
item: itemMessages.pt,
mergeCommon: mergeCommonMessages.pt,
report: reportMessages.pt,
whitelist: whitelistMessages.pt,
mergeRule: mergeRuleMessages.pt,
option: optionMessages.pt,
analysis: analysisMessages.pt,
menu: menuMessages.pt,
habit: habitMessages.pt,
limit: limitMessages.pt,
siteManage: siteManageManages.pt,
operation: operationMessages.pt,
confirm: confirmMessages.pt,
dashboard: dashboardMessages.pt,
calendar: calendarMessages.pt,
timeFormat: timeFormatMessages.pt,
duration: popupDurationMessages.pt,
helpUs: helpUsMessages.pt,
button: buttonMessages.pt,
pt_PT: {
dataManage: dataManageMessages.pt_PT,
item: itemMessages.pt_PT,
mergeCommon: mergeCommonMessages.pt_PT,
report: reportMessages.pt_PT,
whitelist: whitelistMessages.pt_PT,
mergeRule: mergeRuleMessages.pt_PT,
option: optionMessages.pt_PT,
analysis: analysisMessages.pt_PT,
menu: menuMessages.pt_PT,
habit: habitMessages.pt_PT,
limit: limitMessages.pt_PT,
siteManage: siteManageManages.pt_PT,
operation: operationMessages.pt_PT,
confirm: confirmMessages.pt_PT,
dashboard: dashboardMessages.pt_PT,
calendar: calendarMessages.pt_PT,
timeFormat: timeFormatMessages.pt_PT,
duration: popupDurationMessages.pt_PT,
helpUs: helpUsMessages.pt_PT,
button: buttonMessages.pt_PT,
},
}

Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/limit-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
},
"urlPlaceholder": "URLを直接貼り付けてください➡️"
},
"pt": {
"pt_PT": {
"conditionFilter": "URL",
"filterDisabled": "Apenas Habilitadas",
"addTitle": "Criar",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/menu-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"helpUs": "協力する",
"userManual": "ユーザーマニュアル"
},
"pt": {
"pt_PT": {
"dashboard": "Painel de Controlo",
"data": "Os Meus Dados",
"dataReport": "Registo",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/merge-rule-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"infoAlert4": "記入しない場合は、元のドメイン名が統合されないことを意味します",
"infoAlert5": "一致するルールがない場合、デフォルトで {psl} より前のレベルになります"
},
"pt": {
"pt_PT": {
"removeConfirmMsg": "{origin} será removido das regras personalizadas de mesclagem.",
"originPlaceholder": "Site original",
"mergedPlaceholder": "Mesclado",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/operation-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"confirmTitle": "動作確認",
"successMsg": "正常に動作しました!"
},
"pt": {
"pt_PT": {
"confirmTitle": "Confirmação de Ação",
"successMsg": "Com êxito!"
}
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/option-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
"resetSuccess": "デフォルトに正常にリセット",
"defaultValue": "デフォルト値:{default}"
},
"pt": {
"pt_PT": {
"yes": "Sim",
"no": "Não",
"resetButton": "Reiniciar",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/report-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
}
}
},
"pt": {
"pt_PT": {
"mergeDate": "Mesclar Datas",
"mergeDomain": "Mesclar URL",
"hostPlaceholder": "URL parcial, e depois digite",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/site-manage-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
}
}
},
"pt": {
"pt_PT": {
"hostPlaceholder": "URL parcial, e depois digite",
"aliasPlaceholder": "Nome parcial, e depois digite",
"onlyDetected": "Apenas detetado",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/time-format-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"minute": "分単位で表示",
"second": "秒単位で表示"
},
"pt": {
"pt_PT": {
"default": "Formato padrão da hora",
"hour": "Exibir em horas",
"minute": "Exibir em minutos",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/app/whitelist-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"placeholder": "URL",
"errorInput": "無効なURL"
},
"pt": {
"pt_PT": {
"addConfirmMsg": "{url} não será mais contado após adicionado à lista ignorada.",
"removeConfirmMsg": "{url} será removido da lista ignorada.",
"duplicateMsg": "Duplicado",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/common/base-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"allFunction": "すべての機能",
"guidePage": "ユーザーマニュアル"
},
"pt": {
"pt_PT": {
"currentVersion": "Versão: {version}",
"allFunction": "Todas as Funções",
"guidePage": "Manual do Utilizador"
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/common/button-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"okey": "OK",
"dont": "いいえ!"
},
"pt": {
"pt_PT": {
"create": "Criar",
"delete": "Excluir",
"modify": "Modificar",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/common/calendar-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"last90Days": "過去 90 日間"
}
},
"pt": {
"pt_PT": {
"weekDays": "Seg|Ter|Qua|Qui|Sex|Sab|Dom",
"months": "Jan|Fev|Mar|Abr|Maio|Jun|Jul|Ago|Set|Out|Nov|Dez",
"dateFormat": "{d}/{m}/{y}",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/common/content-script-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"timeLimitMsg": "【{appName}】によって制限されています",
"more5Minutes": "さらに5分間見てください! ! 約束します!"
},
"pt": {
"pt_PT": {
"closeAlert": "Você pode desligar as dicas acima na opção do {appName}!",
"timeWithHour": "{hour} horas {minute} minutos {second} segundos",
"timeWithMinute": "{minute} minuto(s) {second} segundo(s)",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/common/context-menus-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"repoPage": "ソースコード",
"feedbackPage": "フィードバックの欠如"
},
"pt": {
"pt_PT": {
"add2Whitelist": "Ignorar {host}",
"removeFromWhitelist": "Habilitar {host}",
"optionPage": "Opções",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/common/initial-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"txt": "TXT"
}
},
"pt": {
"pt_PT": {
"localFile": {
"json": "Arquivos JSON",
"pdf": "Arquivos PDF",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/common/item-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"importWholeData": "書き出す"
}
},
"pt": {
"pt_PT": {
"date": "Data",
"host": "URL do Site",
"focus": "Tempo de Navegação",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/common/locale-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"name": "日本語",
"comma": ""
},
"pt": {
"pt_PT": {
"name": "Português",
"comma": ","
},
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/common/merge-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"level": "{level} 次ドメイン"
}
},
"pt": {
"pt_PT": {
"tagResult": {
"blank": "Não Mesclar",
"level": "Mantenha o Nível {level}"
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/common/meta-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"description": "To be the BEST webtime tracker.",
"slogan": "Insight & Improve"
},
"pt": {
"pt_PT": {
"name": "Rastreador de Tempo",
"marketName": "Rastreador de Tempo",
"description": "Ser o MELHOR rastreador de tempo da web."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/common/popup-duration-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"thisMonth": "今月の",
"last30Days": "過去 30 日間"
},
"pt": {
"pt_PT": {
"today": "Hoje",
"thisWeek": "Esta Semana",
"thisMonth": "Este Mês",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/message/guide/app-resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"l2": "アイコン ポップアップ ページのフッターに [{button}] リンクがあり、同じ方法でクリックすることもできます。",
"p2": "ポップアップ ページと背景ページは、この拡張機能の主な対話方法であり、それらを開く方法を理解すれば、完全に使用できます。"
},
"pt": {
"pt_PT": {
"title": "Digite a página de gestão",
"p1": "Com base nos ícones, a extensão fornece uma maneira mais conveniente de ver dados. Mas se quiser experimentar todas as funcionalidades, precisa visitar a página de gestão da extensão, por uma das duas seguintes maneiras.",
"l1": "Pode clicar com o botão direito do rato no ícone da extensão e clicar em [{button}] no ementa pop-up.",
Expand Down
Loading

0 comments on commit 7f7e4ef

Please sign in to comment.