Skip to content

Commit

Permalink
feat: set alias in setlanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
jannyHou committed Jan 9, 2020
1 parent 72baa7a commit 928af99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/runtime/src/strong-globalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export class StrongGlobalize {
}

setLanguage(lang?: string) {
if (lang) lang = getLangAlias(lang);
lang = helper.isSupportedLanguage(lang)
? lang
: STRONGLOOP_GLB.DEFAULT_LANG;
Expand Down

0 comments on commit 928af99

Please sign in to comment.