Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add portuguese language #321

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions src/shared/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: 'شنبه',
Expand Down Expand Up @@ -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;
Expand Down