Skip to content

Commit

Permalink
fix: Rollback LocalePresetType to string
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoodle committed Jul 29, 2020
1 parent 807fafa commit 3188dad
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]) as string;
};

const parseNoMatchNotice = () => {
Expand Down

0 comments on commit 3188dad

Please sign in to comment.