angular-translate Questions

3

Solved

My team is currently working on a web project where the front end uses json api provided by the back end. The technology that we use is Spring Boot and AngularJS. The api has the standard error for...

9

Solved

Is there a way to get the current used language in a controller (without $translateProvider)? Couldn't find anything in the $translate service.
Merilee asked 7/12, 2013 at 17:53

2

Solved

I got a strange or maybe intended behavior with angular translate. Our value strategie is $translateProvider.useSanitizeValueStrategy('sanitize'); We use mostly the translate filter in our appl...
Paramedical asked 14/10, 2015 at 9:41

1

Is there a way to translate css selectors(::after, ::before) content using ngx-translate ? .custom-file-label::after { content: "Browse" }

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

4

Solved

I would like to use a variable in my translation but I don't know how to do it in my template. In my HTML template : <md-input-container class="md-block"> <md-autocomplete md-no-cac...
Humism asked 9/5, 2017 at 15:29

5

Solved

I'm trying to translate my project into another language. I used angular translate library and provided an external JSON file with the translations. It looks like this: { "hello_world": "Hola Mun...
Spessartite asked 21/9, 2017 at 18:4

1

Solved

I have a very strange behaviour when using translate service. I configure the translator like this : export class AppComponent implements OnInit { constructor( private translateService: Transla...
Misreport asked 20/5, 2020 at 7:53

4

In my directive templates, I need to use the angular translate filter as such: <label for="data-source-btn"> <span id="data-source-btn-span"></span> {{'Data Source' | translat...

2

I'm using ngx-translate and I have a static file where I defined the keys and their meanings.But when I use translation like this {{"app.key" | translate}} if key does not exist it prints "app.key"...
Silver asked 19/10, 2017 at 7:36

6

Solved

I know this has been asked here before but none of the answers seem to work for my case I bought this theme Angle which is working with Angular 1.4.2 and Angular translate 2.6.0 (even updated to l...
Keepsake asked 18/8, 2015 at 19:10

2

Solved

I am currently look for a solution to put ONE bold word in a string being translated by the angular-translate filter. Sample code below: (I'm sure the solution is simple... I just can't seem to fig...
Tullius asked 5/12, 2014 at 13:58

1

For Java Property Files we have the nice Resource-Bundle Editor support in Intellij. My question: Is there a plugin or settings to have the same side-by-side editing for JSON property files that a...
Cirillo asked 12/1, 2017 at 10:19

2

Solved

On Angular 1.3.x with latest version of angular-translate. Using $sanitize it seems there are problems when using filter or service directly, but it works when using the directive. Suggestions? ...
Geranial asked 23/6, 2015 at 12:12

3

How do you check if a string has a translated value? I'm using AngularJS and AngularTranslate. I only want to display a value if it has a been translated. Angular Translate will show the untransl...
Lamellate asked 1/12, 2013 at 16:0

1

I have to use multiple translatePartialLoader with different urlTemnplate. I am using angular-translate-loader-pluggable. It seems like the child module urltemplate overrides the parent modules url...
Incalculable asked 1/9, 2017 at 6:41

2

Solved

How do I apply ng-translate to translate options inside a select box. For example: Template: <select class="form-control" ng-model="me.gender" ng-options="gender.name for gender in genders"&g...
Tasker asked 9/5, 2014 at 15:15

1

Solved

I have a switch widget which uses custom data attribute value to label itself. .switch.switch-text .switch-label::before { right: 1px; color: #c2cfd6; content: attr(data-hide); } ...
Wendelina asked 19/2, 2018 at 12:2

0

This is discussed a lot, but I can't find how to solve my issue. The reason is clear, I'm trying to use translateService in my interceptor, but both depends on httpClient. I only happens when my ...

6

Solved

I'm trying to implement a language switcher where if a user clicks on "de" from any given page on an "en" side - it takes them to that page of the "de" side. If I console.dir the $state parameter, ...

2

Solved

I'm using angular-translate to provide dynamic language support for my app. I am also using a calendar component (http://angular-ui.github.io/ui-calendar/) which doesn't play that well with angular...
Bronez asked 13/6, 2014 at 7:18

1

I'm using an if/else expression and a translation of the possible values inside the placeholder-Tag of an HTML input-element. It obviously doesn't work this way, because of the nested double quotes...
Succussion asked 11/2, 2016 at 11:3

2

I have a translation key which is actually a HTML code, both encoded as well as unencoded. $scope.translations = { "html_code" : "<script>alert('Alert!');</script>", ...
Correctitude asked 20/1, 2016 at 8:23

5

Solved

I'm using angular-translate for i18n in an AngularJS application. For every application view, there is a dedicated controller. In the controllers below, I set the value to be shown as the page tit...
Harmonics asked 12/12, 2013 at 10:26

1

From Angular translate documentation: $translate(translationId[, interpolateParams], interpolationId); What is the purpose of interpolationId parameter, can you also give an example?
Declension asked 17/11, 2015 at 1:33

© 2022 - 2025 — McMap. All rights reserved.