From 722750b2be9f7eaa49dbdfd3fcac0e7e6d5f7c34 Mon Sep 17 00:00:00 2001 From: Ben Grant Date: Mon, 15 Aug 2022 15:32:52 +1000 Subject: [PATCH] Add Brazilian Portuguese to the language picker --- crabfit-frontend/src/res/dayjs_locales.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crabfit-frontend/src/res/dayjs_locales.ts b/crabfit-frontend/src/res/dayjs_locales.ts index ce5b019..a324171 100644 --- a/crabfit-frontend/src/res/dayjs_locales.ts +++ b/crabfit-frontend/src/res/dayjs_locales.ts @@ -60,12 +60,24 @@ const locales = { weekStart: 1, timeFormat: '12h', }, + 'pt-BR': { // Portuguese (Brazil) + name: 'Português (do Brasil)', + import: () => import('dayjs/locale/pt-br'), + weekStart: 0, + timeFormat: '24h', + }, 'ru': { // Russian name: 'Pусский', import: () => import('dayjs/locale/ru'), weekStart: 1, timeFormat: '24h', }, + // 'zh-CN': { // Chinese + // name: '中文', + // import: () => import('dayjs/locale/zh-cn'), + // weekStart: 1, + // timeFormat: '12h', + // }, }; export default locales;