NGX-Translate is an internationalization library for Angular 2+. It lets you define translations for your content in different languages and switch between them easily.
I want to display a translated message when a button is clicked so I need to use the translate pipe in the typescript.
This is my json :
"newRepair": {
"intake": {
"errormessage" : "This is a required field"
}
}
This is the…
First a bit of context: we've got an Angular project (call it "project X") that has its own json translation files (loaded with ngx-translate). This project is then ported as Angular Elements (the whole thing is ported to a single js file, call it…
I am trying to truncate string after it gets translated. I need help on how to use truncate after the string gets translated.
< span class="inputName" translate>{{ TIMESLOT_1 | truncate:[4] }}
< /span>
I've attempted the method above, but that…
I have an application that it's running in two language ( i can change an choose the language i want bu using i18n) English / French.
At the moment i can get the date only in english even if i select the French Language.
This is my translation method. getting empty array on console. how to handle this?
headersTranslator(headers) {
const transHeader: any[] = [];
headers.map((header) => {
this.translate.get(header.title).subscribe((value) => {
…
This is from the doc:
translate.get('HELLO', {value: 'world'}).subscribe((res: string) => {
console.log(res);
//=> 'hello world'
});
How can I apply with the array like so?
setPayPal(): void {
…
I'm writing an application with NativeScript 6.4.1 and Angular 8.
I want to use the ngx-translate library in my project: https://github.com/ngx-translate/core
Here is my sample repository: https://github.com/aubrey-fowler/translationsTest1
It's…
I have a large database (pouchDB) full of translations each languages translations is held in its own db. How would I use ngx-translate to get the translations directly from the db?
Hi I'm new to Ionic/Angular and I have a problem and i stack in it more than 20 days.
I make small app and i want make it multi language RTL and LTR so i follow the docs here:
https://ionicframework.com/docs/theming/rtl-support/
but still have same…
I am developing a sample app using Angular 8. Along with ngx-translate for translation.
I have imported all the required code in app.module.ts for translate service and it worked perfectly fine. As soon as i added a new module for lazy loading and…