Transloco is an open-source internationalisation and localisation library for Angular and a set of accompanying tools for translations management. It's main features are: switching languages at runtime, lazy-loading support and Ivy compatibility.
Questions tagged [transloco]
55 questions
0
votes
1 answer
Transloco does NOT work in my Angular 12 Prod Build, while it works in my DEV build. What could I be missing?
When I run my Angular 12 application locally using npm start the Transloco translations work fine.
However, after an ng build --configuration production when I run my application using http-server dist/my-project the translations don't work - I see…

Tora Tora Tora
- 973
- 3
- 18
- 33
0
votes
1 answer
Transloco - how to add scope to Translation API?
How to set the scope when using : this.translocoService.translate('object.test'); ?
My translation files are located in a folder like "MyFolder", so the scope will be MyFolder.
This is the structure of my *.json files:
{
"demo": "test123",
…

Christoph1972
- 786
- 3
- 10
- 21
0
votes
1 answer
How do I translate const files if I can't import TranslocoService?
Introduction
Hello, I have an Angular+Ionic project and I'm using Transloco to translate some of the text.
The problem
I have a consts file that has strings inside and I want to be able to translate them in the same file but I don't know how to do…

Matias
- 1
- 1
0
votes
1 answer
How to add Transloco translation files in production mode?
I got an error when running my app in IIS: myServer/assets/i18n/de.json not found. How to add the Transloco translation files in production mode?

Christoph1972
- 786
- 3
- 10
- 21
0
votes
1 answer
How to check missing translation keys in transloco?
I am currently using Transloco to do my translations in angular application. I have 2 files in my assets:
en.json with values:
{
"firstName": "First Name",
"lastName": "Last Name",
"address": "Address"
}
fr.json with values (lastName…

avdeveloper
- 449
- 6
- 30
0
votes
1 answer
Failed to load i18N files after ionic build
After running NG Build to generate a PWA solution, the i18n files of the transloc translation are not being found. I looked for where the files are being pointed, but I didn't find them.
The correct url is…

Roberto Vieira
- 349
- 1
- 3
- 12
0
votes
1 answer
How to use 'transloco' on `pie-chart` in Angular?
This is my code:
.HTML:

Hasani
- 3,543
- 14
- 65
- 125
0
votes
2 answers
NullInjectorError: No provider for InjectionToken DEFAULT_LOCALE
I am trying to set up an Angular 2 project with i18n. Followed the tutorial here using Transloco and all works great. However, when I run the unit tests I get this error and I cant find anything online about it. I am defiantly missing something but…

Lossan
- 411
- 1
- 8
- 16
0
votes
1 answer
Ionic 5 action sheet text not accept transloco
I am using action sheet and transloco translate plugin in my ionic 5 angular app.
When I use transloco on text the APP is considering as string.
buttons: [{
text: "{{'channel.edit' | transloco}}",
icon: 'create-outline',
So what should be…

RRV
- 143
- 10
-1
votes
1 answer
Transloco - how to add a language at runtime
I'm writing an app with Angular 8 and NativeScript 6.4.1.
I am considering using Transloco for my translations library.
I need to be able to change the language at runtime as well as add a new language at runtime.
How can I do this in Transloco?
I…

user1261710
- 2,539
- 5
- 41
- 72