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
6
votes
1 answer

Translate Angular 8 application using i18n at runtime

I am developing a web app and I need to add multi-language support. I went through the Angular documentation and I noticed that the translation was occurring at build time. I was curious if we can develop it in a way that the app translates into…
Missak Boyajian
  • 1,965
  • 7
  • 32
  • 59
6
votes
1 answer

Angular7 i18n Message ... misses a translation

I am in the project folder and execute the following statement in the console: ng serve --configuration=de The execution is broken with an error: ERROR in xliff parse errors: Message ... misses a translation The translation is available. What is…
Grischa
  • 101
  • 6
6
votes
1 answer

Using angular i18n on conditional operators (ternary)

Is it possible to use i18n on strings that require conditional operation

{{ updateMode ? 'Edit' : 'Add'}}

tonis
  • 95
  • 1
  • 5
6
votes
1 answer

ngx-translate: Translate strings in html

I am using ngx-translate lib to support I18N in my angular app. Can anyone help me to mark the below html snippet for translation? Follow-up is {{ InDays |…
user2439903
  • 1,277
  • 2
  • 34
  • 68
6
votes
1 answer

Are there reasons to use XMB and XTB message formats over XLF or XLIFF in Angular's i18n?

I have not been able to tell if XMB/XTB and XLF/XLIFF are just different flavors with the same capabilities, or if there are good reasons to use one vs the other when doing translations using Angular's i18n. Is one format more dominant in…
indigo
  • 1,067
  • 4
  • 15
  • 26
5
votes
1 answer

Unable to load translation and all the fallback languages, did you misspelled the scope name?

I'm trying to use "@ngneat/transloco": ^2.17.1" for i18n in my application. It was working fine earlier but i don't know what happened suddenly all of a sudden I get this error message Unable to load translation and all the fallback languages, did…
HariHaran
  • 3,642
  • 2
  • 16
  • 33
5
votes
1 answer

Angular i18n how to translate select options

I'm working on a reactive form on Angular 7, and I need to make a dropdown list with , and I need to translate options from english to french. Options are set in my Ts file. I've heard about ICU expressions, I've read the documentation but I don't…
JulienT
  • 81
  • 1
  • 9
5
votes
0 answers

Angular 9: How to use $localize in a routing

I am using "@angular/localize": "^9.0.2" and I have a route with a dynamic title which should be translated: const routes: Routes = [ { path: 'overview', component: DashboardPageComponent, data: { title: $localize`:@@overview:Overview`,…
Fran b
  • 3,016
  • 6
  • 38
  • 65
5
votes
1 answer

Is there a way to live switch languages in angular 8?

I was watching some tutorials to make the frontend of my app with option to switch between english and spanish Reading some tutorials about translating my content I found the i18n. But aparently I have to run "ng serve --configuration=es" to put the…
Anibal Cardozo
  • 479
  • 1
  • 10
  • 21
5
votes
0 answers

How to change path for i18n angular translate module files in angular app production build

I want to place my application in http://example.com/my_dir path, first of all I had to add to my build command an option build --prod --base-href=/my_dir/. All works fine but I have a problem only with translator files. Normaly I kept them in…
Patryk
  • 377
  • 2
  • 19
5
votes
4 answers

Angular translate plugin not firing up

I have installed the Angular Translator plugin but it doesn't seems to work. I've tried using the default shortcut: "ctrl + alt + T"; I've tried changing the shortcut to "alt + t"; I've tried using it through the command prompt: But nothing is…
MHogge
  • 5,408
  • 15
  • 61
  • 104
5
votes
2 answers

Angular Internationalization ( ngx-translate/ i18n OR i18next )

I need to implement internationalization in a large scale project in Angular. From what I have found, there are two main choices : Angular's official i18n OR ngx-translate. To understand advantages and disadvantages of both, I have gone through a…
5
votes
1 answer

How to make translations for NgbDatepicker in Angular without subclassing NgbDatepickerI18n?

I am currently reading about internationalization of the ng-bootstrap components. Their documentation says for the datepicker: Since the 2.0.0 release datepicker will use the application locale if it is present to get translations of weekdays and…
andreas
  • 7,844
  • 9
  • 51
  • 72
5
votes
1 answer

Angular i18n json cache issues using nginx

I'm using angular with i18n translations in json files like de.json and en.json. In my production environment (nginx) I have the problem that these JSON files are cached by the web browser. After an upgrade, Chrome will not download the new version…
MBDev
  • 442
  • 1
  • 4
  • 14
5
votes
3 answers

Automatic compare check in Angular i18n json files

I have 2 files en.json and xx.json with translations in Angular application. Common idea is to create translation in both files for multilanguage application, but sometimes some programmers adding translation just in one of these file, because they…
Gregor Albert
  • 819
  • 1
  • 11
  • 23
1 2
3
17 18