Skip to content

Commit

Permalink
fix: remove LocalePresetType
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Aug 10, 2020
1 parent d8d6e6b commit cf792bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generate/dayjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const localeMap: IlocaleMapObject = {

const parseLocale = (locale: string) => {
const mapLocale = localeMap[locale];
return (mapLocale || locale.split('_')[0]) as LocalePresetType;
return mapLocale || locale.split('_')[0];
};

const parseNoMatchNotice = () => {
Expand Down

0 comments on commit cf792bd

Please sign in to comment.