From 6db98d12a39d1924a5b662cf77bec49c97f65e94 Mon Sep 17 00:00:00 2001 From: rafatozzi <44178301+rafatozzi@users.noreply.github.com> Date: Sat, 11 Jun 2022 11:39:43 -0300 Subject: [PATCH] Add portuguese language --- src/shared/constants.js | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/shared/constants.js b/src/shared/constants.js index bceb3a11..6a33b80a 100644 --- a/src/shared/constants.js +++ b/src/shared/constants.js @@ -30,6 +30,21 @@ export const GREGORIAN_MONTHS = [ 'December', ]; +export const PORTUGUESE_MONTHS = [ + 'Janeiro', + 'Fevereiro', + 'Março', + 'Abril', + 'Maio', + 'Junho', + 'Julho', + 'Agosto', + 'Setembro', + 'Outubro', + 'Novembro', + 'Dezembro', +] + export const PERSIAN_WEEK_DAYS = [ { name: 'شنبه', @@ -95,6 +110,39 @@ export const GREGORIAN_WEEK_DAYS = [ }, ]; +export const PORTUGUESE_WEEK_DAYS = [ + { + nome: 'Domingo', + short: 'D', + isWeekend: true, + }, + { + nome: 'Segunda', + curto: 'S', + }, + { + nome: 'Terça', + curto: 'T', + }, + { + nome: 'Quarta', + curto: 'Q', + }, + { + nome: 'Quinta', + curto: 'Q', + }, + { + nome: 'Sexta', + curto: 'S', + }, + { + nome: 'Sábado', + short: 'S', + isWeekend: true, + }, +]; + export const MINIMUM_SELECTABLE_YEAR_SUBTRACT = 100; export const MAXIMUM_SELECTABLE_YEAR_SUM = 50;