Questions tagged [angular-i18n]

angular-i18n is part of the Angular framework, which provides i18n features like localization (dates, number, percentages, and currencies), text translations, pluralization and alternative text. For the older AngularJS (1.x) web framework, use the angular-translate tag.

Angular 2+ provides its own tool for internationalization. It already supports many features, but misses some major features like lazy loading, translation outside templates etc. Those features will be available in Angular 6+.

Angular i18n Documentation

Since Angular is under development the implementation of i18n still is in progress an can be tracked on this GitHub issue: #16477

263 questions
0
votes
1 answer

Is there a way to translate bindings with Angular native internationalization mechanisms?

Problem I'm implementing translations for my Angular 6 application. It needs to support static texts of the app in multiple languages. I don't need dynamic translations during runtime - I just need producing an app with texts in a language chosen…
Robert Kusznier
  • 6,471
  • 9
  • 50
  • 71
0
votes
1 answer

Angular internalization translate file upload button text

I am using Angular and i18n to translate the applications in different languages. How to translate the input file upload button choose file and No file chosen text. ng2-file-upload
TamilRoja
  • 165
  • 1
  • 1
  • 13
0
votes
2 answers

Angular i18n - Translate Typescript value in HTML Attribute Display

Is there a chance to do translation for HTML Attributes that will be retrieved from typescript functions? For example, please see below.
Viswa
  • 745
  • 10
  • 30
0
votes
2 answers

Angular i18n will work on AngularJS 1.5?

Does i18n or ngx-translate work on Angular 1.5 (below Angular2)?
Viswa
  • 745
  • 10
  • 30
0
votes
1 answer

How to change ts file based on language using angular localization

I have files errors.ts and content.ts with English content same way errorsEs.ts and contentEs.ts with Spanish content.etc. I am doing JIT compiler angular localization to translate the language. I have imported errors.ts and content.ts throughout…
TamilRoja
  • 165
  • 1
  • 1
  • 13
0
votes
1 answer

Internationalization-of-dynamic-data-in-angular

I am using internationalization [i18n] in my angular project. For static content it is working properly. But dynamic content it is not working. My code is as follows: Static:
{{ 'ADD ENTRY' | translate }}
Dynamic:
{{…
user8030367
  • 81
  • 4
  • 18
0
votes
1 answer

angular 5 i18n translate 403

I'm trying to use i18n to make a multi-language website, but, while compiling the final version to the server, it is returning the error below. can you help me? My code
0
votes
2 answers

angular i18n translation in production not working

In my development environment, the code works fine. But as soon as I build it and push to production, it's failing to compile the app into the correct language console.log(environment); if (environment.production) { enableProdMode(); …
cphilpot
  • 1,155
  • 3
  • 17
  • 39
0
votes
1 answer

Server side routing with Angular for localization

I have a Angular app that I am trying to localize. What I have so far is that all my displayed values are located in a single json file (stringResources.json). After translation I will have multiple files, one for each of the languages that I want…
0
votes
1 answer

Integration Angular 5 i18n module and internationalization in spring boot

i'm trying to integrate Angular i18n module in our spring boot application and i have some problems with base href. I've build our application for each language 'de' and 'en' like…
Eli
  • 117
  • 7
0
votes
0 answers

Angular 5 Server-side rendering in country subfolders

I have successfully implemented server side rendering on my angular 5 app thanks to the universal starter. I am now stuck with angular native internationalisation. I can successfully ng build --locale=fr --ouput-path=dist/fr --base-href=fr without…
0
votes
1 answer

Angular 2 typescript export value from a class

import {TranslateService, LangChangeEvent} from "@ngx-translate/core"; class ExportLanguageFun { public currentLang : string; constructor(private translate : TranslateService) { } public static setValue(): string { …
rebello
  • 67
  • 1
  • 6
0
votes
1 answer

Can Angular4+ provide localization via HTTP Header Accept_Language?

While reading the Angular i18n guide I was struck by the following line: You need to build and deploy a separate version of the app for each supported language. It seems like very few system providers would want this model. I know we don't want…
Michael Witt
  • 1,582
  • 4
  • 22
  • 43
0
votes
1 answer

Angular2 i18n pipe transform in .ts file

I want to translate messages in my angular2 material snackbars. Problem is to show snackbar I need to pass message as parameter. To translate using i18n: https://angular.io/api/common/I18nSelectPipe . I can't use interpolation as parameter. So how I…
kipris
  • 2,899
  • 3
  • 20
  • 28
0
votes
1 answer

Angular internationlization (i18n) seems to be not working

I want to translate english to marathi language (Indian regional language - mr_IN). I have followed all the instructions for translation at https://angular.io/guide/i18n . Made sure all the dependencies are there however, no translation is done…
tyro
  • 577
  • 8
  • 17
1 2 3
17
18