ngx-translate Questions

3

I´m using Angular 5 with ngx-translate for i18n. Now I´ve the following issue and found no solution so far: Template: Please <a routerlink="/signup">Signup now</a>! Now this string ...
Megasporangium asked 11/1, 2018 at 7:14

1

Hi is there any way to translate with non-breaking space (' ') I have tried with this es.json: " example": " ejemplo"; In my component I have this...
Tying asked 22/3, 2021 at 12:28

4

I'm using ngx-translate. How can I put a line break in a string to translate ? In my template I have : {{'STRING_TO_TRANSLATE' | translate}} In my en.json: { "STRING_TO_TRANSLATE": "text on ...
Ritch asked 22/8, 2017 at 13:29

2

Solved

We are using Angular 6 in our application. We recently started to prepare our app fro lazy-loading. Application has multiple lazy-loaded routes. We want to use a single language file for all route...
Thyself asked 22/6, 2018 at 16:35

2

Solved

In angular translation service, interpolating params in normal translation json works well. But in nested json, interpolating params is not working. My JSON: "SampleField": { "SampleValidation...
Dissuasion asked 3/9, 2017 at 16:57

3

Solved

I am working in my Ionic 4 App and I have installed the ngx-translate plugin. It is working fine in app.component.html but in tabs.page.html it is showing the error. The pipe 'translate' could n...
Rennie asked 5/3, 2019 at 10:27

3

Solved

I use ngx-translate in my Angular application. My HTML template: <span [ngClass]="(role === 'ADMIN') ? 'badge badge-danger' : 'badge badge-success'">{{ 'ADMIN.USER.ROLES.' + role | translat...
Diane asked 5/3, 2019 at 16:58

5

Solved

My project is set up with Angular CLI, so it's built with webpack but the webpack config files are hidden. I got two files, nl.json and fr.json, but get a 404 for both, even though it looks like i...
Malcolmmalcom asked 26/6, 2017 at 9:5

2

Solved

I am able to translate text using translate pipe but currently struggling to load translations using translate service's get and instant method. Below is my code in app.component.ts export class A...
Fungistat asked 21/7, 2017 at 6:58

3

What would be the best way to use the translate pipe with the async pipe in an HTML template? For example, assuming 'foo' and 'bar' had values: {{ 'foo' | translate: '{ bar: (bar$ | async) }' }}...
Yesima asked 31/7, 2018 at 19:11

2

Solved

I am using ngx-translate in Angular(v6) with lazy-loading approach. I am facing a problem with translate.instant('Title') Using translate pipe it works fine.( {{'Title' | translate}}) Using trans...
Rube asked 28/3, 2019 at 15:51

1

Solved

I need to use TranslateService.instant from ngx-core and pass parameters to do string interpolation. So far I've done: MY_STRING: "Welcome {{user}}" In my component I do: translateService.insta...
Khanate asked 28/1, 2020 at 11:49

4

Solved

I've got an application which uses this library. How do I test components with it? I DO NOT WANT TO TEST THE LIBRARY. I just need to start tests of my component without multiple errors about Transl...

3

Solved

I'm building an application using the latest Angular5 and what I need is for a user to be able to switch languages. I've never had to implement this in an Angular2+ (actually I'm using Angular5). ...

1

Solved

I had problems with ngx-translate-messageformat-compiler plugin (json files parse fails after add plural forms). ¿There are any alternatives?
Spaceband asked 6/9, 2019 at 9:9

2

In my webapp, I use ngx-translate module for localization. It works ok for html strings which I translate using pipes. I am having problems with strings translated in my ts components. Strings get ...

3

I am trying to get translated text from content management system with service URL. When I use a JSON file it works well, but how can I use a service URL to get translated data? This is the code t...
Decentralization asked 21/6, 2017 at 8:58

4

Solved

I am using ngx-translate to translate my Angular Web-app, and it seems that ngx-translate has an issue with the function getTranslation(language). When it's called, it changes the current language ...
Khalilahkhalin asked 5/6, 2018 at 17:51

2

I'm setting up a new Angular 7 app. I want to set a default text for translation. So in the translation {{ 'wait' | translate }}, I want to set text 'Waiting Now' as default text if there are any f...
Pluviometer asked 13/4, 2019 at 5:47

4

Solved

I've created my own private angular library with multiple components to make my life easier. I made this library by following this tutorial. Everything worked out great I even added it to another p...
Cuthbert asked 29/12, 2018 at 18:20

1

Solved

I have created the application with the pages like dashboard and settings. Now I want to change the language throughout the application when I change the language option. But it is working only for...
Avocation asked 1/7, 2019 at 7:51

1

Solved

I'm having an issue with NGX-Translate in Angular7. I'm trying to translate a phrase with a parameter. If the parameter is hardcoded, it works, but if the parameter is a variable it doesn't. app....
Altricial asked 25/6, 2019 at 15:9

3

Solved

We have an Angular application which has two languages. The default is German and the other one is English. We are using ngx-translate as the translateService. When you refresh the browser, the app...
Bottomry asked 12/4, 2019 at 8:1

3

Solved

I want to make an angular 4 app that is multilangual. I have followed the answer on Angular 2 - Multilingual Support but it doesn't work. I did every step, from 1 to 5 on that page and my appmodul...

1

What we want to do Use a separate translateLoader that loads it's own translations for a certain module in our app. What we have tried Al lot of different combinations of TranslateModule.forChil...
Variegation asked 26/9, 2017 at 8:42

© 2022 - 2024 — McMap. All rights reserved.