Questions tagged [ng2-translate]

89 questions
0
votes
1 answer

How to translate a data from database using ng2-translate in angular?

need translate data from database using ng2-translate in angular without using JSON file or can we translate text using ng2-translate.. I tried by following code to translate text this.translate.get("SPANISH") .subscribe((data: string) => {…
0
votes
0 answers

Jhipster JhiLanguageService always points to relative path

I am using jhipster application { "generator-jhipster": { "promptValues": { "packageName": "com.labkit.sci.mycloud", "nativeLanguage": "en" }, "jhipsterVersion": "5.5.0", "applicationType":…
0
votes
1 answer

Ng2-translate and webpack

Good afternoon guys, I'm using ng2-translate to do the translation of the app and run perfectly with the command: tns run ios | Android         But I'm having an error while running with webpack with the following parameters: tns run ios --bundle…
0
votes
1 answer

using ng2-translate with jhipster, Property 'parser' is private in type 'TranslateService' but not in type 'TranslateService'

i'm using angular-cli as a client for Jhipster, and when i try to build my project i have a probleme on Translate module, i tried to upgrade to ngx-translate but i still having the same problem. here is the error i got : 'TranslateService' is not…
AmineBena17
  • 23
  • 1
  • 5
0
votes
1 answer

Inject a translated string as an input in an angular 5 component

I have an angular component template I want to inject title as an @Input() into, to be displayed as:
{{ title }}
How do I inject the translated title into the parent component using ng2-translate's pipe, like…
bgmaster
  • 2,313
  • 4
  • 28
  • 41
0
votes
2 answers

Can't get ng2-translate to play ball in Nativescript/Angular application

I'm attempting to build a Nativescript/Angular application with internationalisation. I researched my options and found that ng2-translate should do the trick, together with nativescript-ng2-translate, which should handle the loading of translation…
Jürgen Simon
  • 876
  • 1
  • 12
  • 35
0
votes
1 answer

Angular 2: How to use ng2-translate alongside in-memory-web-api

I'm using ng2-translate for i18n translations + in-memory-web-api for mock data. Without the in-memory-web-api the i18n translations work as they should but with it enabled angular's Http service cannot resolve the correct path to the translation…
Nik
  • 7,086
  • 6
  • 36
  • 52
0
votes
0 answers

Ng2-Translate loading json lazy

I am using the Ng2-Translate i am facing a problem where once the application is loaded i cannot able to see the translations from the json file. Import that i have done: import { TranslateService } from 'ng2-translate'; Code: ngOnInit() { …
Rohitesh
  • 1,514
  • 7
  • 28
  • 51
0
votes
1 answer

ng2-translate in Ionic 2.2.3, the text doesen't change with different languages

I need some help with ng2-translate in an Ionic 2(.2.3) Application. I followed this tutorial: https://www.techdiary.io/internationalization-of-ionic2-apps/ and it worked. I created an en.json file and a small "dictionary" as well. The words I…
user3793935
  • 411
  • 5
  • 22
0
votes
1 answer

Angular with ng2-translate only works at home page

I'm using Ionic framework v3.0.1 and I've followed this tutto https://javebratt.com/angular-translate-ionic/ step by step and works fine at home page. But i've created a second one and I don't have access to the language selected at home page…
Jorj0
  • 1
0
votes
1 answer

Best practice for internationalized ng2-translate app angular2

Hi I have an angular 2 project internationalized with ng2-translate, it works fine but in all my module I have imported translatemodule ecc... So now the app call selectedLanguage.json in every page clicked. Is there a way to charge the translation…
Alessandro Celeghin
  • 4,039
  • 14
  • 49
  • 95
0
votes
1 answer

ng2 translate and @Input()

I have the following problem. How Can I translate @Input() from angular2 in ng2-translate? Will be very grateful for any help. If you have any other question about my code, just ask. I am getting Your phone number: 123 {{ telephone }} My…
user6372887
0
votes
1 answer

How to define the translations manually using TranslationService.setTranslation method

I am using ng2-translate node package to implement translations in an Angular SPA application. Following the instruction found at https://www.npmjs.com/package/ng2-translate (see Section #3 Define Translations), I defined the translations in one of…
UncleZen
  • 289
  • 1
  • 4
  • 22
0
votes
1 answer

Translation not working in ionic modal

I'm taking over the code of a small application witl Ionic v2, and I'm using ng2-translate for my translations. I have an issue with translations only in a modal window. It works very well everywhere, except on this modal, where I can only see the…
DarkChipolata
  • 925
  • 1
  • 10
  • 29
0
votes
1 answer

using ng2-translate to translate ag-grid-ng2 column headers

This may be a stupid question, but I'm asking anyway! I'm learning how to use Angular2, and as part of the project I'm working on there's a requirement to translate between English and other languages. I found the excellent ng2-translate, which…