Skip to content

Commit

Permalink
fix(compiler): normalize the locale name (#18963)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Aug 31, 2017
1 parent 4ec5e28 commit 043f104
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/compiler/src/aot/compiler.ts
Expand Up @@ -229,9 +229,10 @@ export class AotCompiler {
const providers: CompileProviderMetadata[] = [];

if (this._localeId) {
const normalizedLocale = this._localeId.replace(/_/g, '-');
providers.push({
token: createTokenForExternalReference(this._reflector, Identifiers.LOCALE_ID),
useValue: this._localeId,
useValue: normalizedLocale,
});
}

Expand Down

0 comments on commit 043f104

Please sign in to comment.