Skip to content

Commit

Permalink
feat(index): Fix kazupon#193 add type definition to availableLocales
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Mar 7, 2019
1 parent c6f7918 commit 3f47c21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions decls/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ declare interface I18n {
set fallbackLocale (locale: Locale): void,
get messages (): LocaleMessages,
get dateTimeFormats (): DateTimeFormats,
get availableLocales (): Locale[],
get missing (): ?MissingHandler,
set missing (handler: MissingHandler): void,
get formatter (): Formatter,
Expand Down
1 change: 1 addition & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ declare class VueI18n {
readonly messages: VueI18n.LocaleMessages;
readonly dateTimeFormats: VueI18n.DateTimeFormats;
readonly numberFormats: VueI18n.NumberFormats;
readonly availableLocales: VueI18n.Locale[];

locale: VueI18n.Locale;
fallbackLocale: VueI18n.Locale;
Expand Down

0 comments on commit 3f47c21

Please sign in to comment.