ng2-translate Questions

4

I am working on component testing with angular2. in my html template i use the translate pipe. This is the code of the test : import { ComponentFixture, TestBed ,getTestBed} from '@angular/core/...
Shute asked 20/9, 2016 at 15:21

2

Solved

I use ng2-translate in my Angular 5 project and I am trying to create a unit test for one component. I always import TranslateModule.forRoot( *...* ) in my Tests and the tests will work using the t...

3

I have application with many modules. I am using ngx-translate for multilingual functionality. But, it's not working. i18n.module.ts import { NgModule } from "@angular/core"; import { BrowserModu...

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 ...

5

I want to build a web-application with angular2 and bundle this with webpack. What is the best way for providing multiple languages: i18n-plugin: https://github.com/webpack/i18n-webpack-plugin or...
Valentine asked 14/9, 2016 at 19:54

2

Solved

I tried to use ng2-translate with parameters in the template: {{ test | translation:{value:param} }} And it works perfectly. I would like to build my translation in my typescript and I saw this ...
Chinquapin asked 2/11, 2016 at 20:39

1

I'm trying to translate the page with German and English option using ng2-translate. navbar.component.html <div id="sidebar-wrapper">     <div class="side-wrap-div">         <div ...
Invertebrate asked 16/12, 2016 at 11:13

2

Solved

I'm using angular cli to build a website which contains multiple languages. I use ng2-translate for the translations. I import a languages.json file defined in angular-cli.json: "assets": [ "ass...
Falito asked 27/4, 2017 at 8:2

1

I have an Angular2 app which worked perfectly fine until two days ago. When I tried to build the solution in Visual Studio 2015, I got 10 errors: Build: Cannot find type definition file for 'hamme...
Va asked 25/4, 2017 at 20:8
1

© 2022 - 2024 — McMap. All rights reserved.