Questions tagged [angular-translate]

Angular-translate is an AngularJS module including lazy loading and pluralization.

angular-translate is an AngularJS module that makes your life much easier when it comes to i18n and l10n including lazy loading and pluralization.

See,

725 questions
14
votes
4 answers

Angular translate variable replacement

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 :
Joe Allen
  • 1,267
  • 4
  • 24
  • 41
14
votes
2 answers

One-time binding with filter

I'll migrate my angularjs application from 1.2.0 to 1.3.0-rc2 and I want to change my code from bindonce to the new one-time binding.IS also used angular-translation. I write the follow code:
Abraham
  • 155
  • 1
  • 6
12
votes
2 answers

Angular translate service, interpolate params in nested json

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": { "MIN": "Value should not be less than…
Aqeel Ashiq
  • 1,988
  • 5
  • 24
  • 57
12
votes
5 answers

angular-translate (PascalPrecht) how to avoid load text labels before translate

I have an AngularJS application. For text translations Im using angular-translate. It works great, but when I request the first page there are some seconds before the translations are loaded that the page displays the labels. I have read some posts…
Rober
  • 5,868
  • 17
  • 58
  • 110
11
votes
1 answer

Angular 2 TranslateService detect language change

How to detect language change in other components? My detection is made in header component. My target is to detect language change and set style. Child component: import { TranslateService } from "ng2-translate"; export class ChildComponent{ …
IntoTheDeep
  • 4,027
  • 15
  • 39
  • 84
11
votes
1 answer

How to use a filter inside translate-values attribute of angular translate

I am trying to use angular translate to display something like - Posted By John Doe on 1st Jan,2016 - where John Doe and 1st Jan,2016 are dynamic scope variables. So, I have something like
CodingBee
  • 141
  • 1
  • 1
  • 11
10
votes
1 answer

Angular-Translate : Child Module translatePartialLoader urlTemplate overrides the Parent Module translatePartialLoader urlTemplate

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 urltemplate Parent Module…
Debananda
  • 476
  • 1
  • 6
  • 17
10
votes
1 answer

IntelliJ i18n-support for angular-translate

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 are used by angular-translate? They are basically…
beat
  • 1,857
  • 1
  • 22
  • 36
10
votes
5 answers

AngularJS : Setting languages in angular-translate from Controller or Service

I am interested in using angular-translate. Due to a lot of setup calls that happen initially on startup, I cannot provide the language json during config. Nor is it possible to use the async loader. I need to be able to specify the languages from a…
Joel Basson
  • 219
  • 1
  • 2
  • 9
9
votes
2 answers

Change dynamically Recaptcha V2 language

I trying to implement Recaptcha V2 on an angular site. I'm using angular translate and I don't know how to regenerate the reCaptcha object with the correct language provided from the $scope There is any method ? or process to reload the object with…
Rtrompier
  • 113
  • 1
  • 6
9
votes
1 answer

angular-translate ad ng-options

I'm trying to translate a select drop-down and I don't like the way I'm doing it, because it's cumbersome and it bypasses the whole angular-translate framework. The locale data looks like {"lang": {"label": "text", "select": {"k1": "var1", "k2":…
Eddy
  • 1,662
  • 2
  • 21
  • 36
8
votes
2 answers

$translate.instant does not translate values in AngularJS component when component starts

With Angular Translate and $translate.instant() method I built AngularJS's select component with automatic switching between languages:
8
votes
1 answer

How do I combine an if/else expression with angular translate inside an attribute?

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 inside the placeholder-tag:
Felix
  • 81
  • 1
  • 3
8
votes
1 answer

Set title attribute with condition and using angular translate

I am using title attribute with some condition and my code is
  • pack.details
  • Here when the admin is true then it shows purchase license pack. But how to make that one to…
    VijayVishnu
    • 537
    • 2
    • 11
    • 34
    8
    votes
    1 answer

    Angular-translate's localStorage: Unknown provider: $translateLocalStorageProvider

    I'm using angular-translate in my Angular (v1.x) app as well as loading translations from files by using $translateProvider.useStaticFilesLoader angular.module('myApp',['pascalprecht.translate']) .config(function($translateProvider) { …
    dragonmnl
    • 14,578
    • 33
    • 84
    • 129
    1
    2
    3
    48 49