DEV Community

Discussion on: Deploying an i18n Angular app with angular-cli

Collapse
 
xxxlogiatxxx profile image
xxxLOGIATxxx

Hey! Thank you for brilliant post. Using latest Angular and first bonus sounds really good to me but it's showing me some errors so i can't build my app:

ERROR in src/app/app.component.html(24,13): Property 'localeId' is protected and only accessible within class 'AppComponent' and its subclasses.
src/app/app.component.html(26,13): Property 'localeId' is protected and only accessible within class 'AppComponent' and its subclasses.
src/app/app.component.html(26,74): Property 'localeId' is protected and only accessible within class 'AppComponent' and its subclasses.
src/app/app.component.html(12,51): Property 'localeId' is protected and only accessible within class 'AppComponent' and its subclasses.

It's ok if i change protected constructor(@Inject(LOCALE_ID) protected localeId: string) {} to public?

And it's returned me en-US, not en locale.

Collapse
 
mrreyesa profile image
MrReyesA

hey @xxxlogiatxxx
Did you found a Solution???