Skip to content

Commit

Permalink
Merge pull request #34 from wilsonrsoler/patch-1
Browse files Browse the repository at this point in the history
Adding PT Language to Locale options
  • Loading branch information
shubhadip authored Jan 30, 2022
2 parents 637d03d + ddf8891 commit d0300c8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/components/datepicker/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,41 @@ const nl = (): ILocale => {
};
};

const pt = (): any => {
const langName = 'Português';
const monthFullName = [
'Janeiro',
'Fevereiro',
'Março',
'Abril',
'Maio',
'Junho',
'Julho',
'Agosto',
'Setembro',
'Outubro',
'Novembro',
'Dezembro',
];
const shortName = ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'];
const days = ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'];
const daysNames = ['Domingo', 'Segunda-Feira', 'Terça-Feira', 'Quarta-Feira', 'Quinta-Feira', 'Sexta-Feira', 'Sábado'];
const rtl = false;
const ymd = false;
const yearSuffix = '';
return {
months: monthFullName,
monthsAbbr: shortName,
days,
language: langName,
yearSuffix,
ymd,
rtl,
langName,
daysNames,
};
};

export const data = {
af: af(),
hi: hi(),
Expand All @@ -248,4 +283,5 @@ export const data = {
en: en(),
fr: fr(),
nl: nl(),
pt: pt(),
};

0 comments on commit d0300c8

Please sign in to comment.