Questions tagged [grunt-angular-gettext]

12 questions
2
votes
1 answer

How do you handle inline tags with angular-gettext?

for instance:
This is awesome
I would like to know if there's a better approach to prevent sending those inlinr tags to the .po file.
John Smith
  • 1,848
  • 3
  • 13
  • 24
1
vote
0 answers

How to compile for csharp using angular-gettext?

How to generate translation.cs file using the angular-gettext? I am looking at https://github.com/rubenv/angular-gettext-tools/pull/117 link it says it has support for csharp and and according to its main site…
razzy
  • 198
  • 1
  • 10
1
vote
2 answers

Why translations.js does not contain any string from .pot file during nggettext_compile?

grunt.loadNpmTasks('grunt-angular-gettext'); grunt.initConfig({ nggettext_extract:{ pot:{ files:{ 'po/template.pot':['**/*.html'] } } }, nggettext_compile: { all:{ files:{ 'translations.js':['po/*.po'] } …
1
vote
2 answers

Multi-language app -> Angular-gettext: how to update po files?

I am building an angular app, with internationalization using angular-gettext. I would like to know how to better automate the workflow when updating the translation files. Currently it is the following: - running "grunt" (generation of pot file +…
bobby
  • 674
  • 3
  • 10
  • 14
1
vote
1 answer

Grunt + angular gettext: how to extract and/or compile continuously?

I am using grunt and grunt-angular-gettext with my angularJS project. I would like to let grunt run grunt task nggettext_extract whenever a source file is updated, and nggettext_compile whenever a 'po' file is updated. I thought I could just add the…
MarcoS
  • 17,323
  • 24
  • 96
  • 174
0
votes
1 answer

angular-gettext does not pick the strings from .PO files

I have installed everything according to documentation. Some of the things are working as per the documentation. Is there something like Django translation which automatically replaces the translation for specific language if you select those lang…
Sagar
  • 159
  • 2
  • 17
0
votes
1 answer

angular-gettext doesn't work despit displaying no erroe

I started a new Angular project for a local company three days ago and they told me today that they wanted their web application to be in French AND in English. So I found the angular-gettext module which seemed to be a good solution. I followed…
Y.Uzumaki
  • 119
  • 1
  • 3
  • 12
0
votes
1 answer

angular-gettext does not work for escaped double quots

We are using angular-gettext in our project and it's amazing tool, but there is one case I'm just frustrating on. In one template I have input with placeholder which also should be translated. For all the other placeholders it work like a charm,…
dr_leevsey
  • 365
  • 4
  • 15
0
votes
1 answer

Nggettext globalization + grunt automization + jade templates

I found this super informative and useful article about globalization using angular's gettext directive and grunt. Problem is, it seems to extract from .html files only and I can't really get it running with jade. I am using Node.js for my server,…
0
votes
1 answer

Parse external files with grunt in AngularJS

I am currently using angular-gettext in order to translate my app creating a .po file. My problem is that I have a strange architecture, and my HTML views are not in the same project than my Angular app. So I would like to know if it possible to…
lightalex
  • 879
  • 1
  • 11
  • 26
0
votes
2 answers

angular-gettext: interpolate select options

I want to be able to translate the contents in the options of an angular generated dropdown using angular-gettext. I have two different solutions and none of them work: In this one i use ng-repeat and have the textKeys in js: $scope.categories =…
Per Eriksson
  • 524
  • 1
  • 9
  • 25
0
votes
1 answer

angular-gettext library- fails to compile JSON files?

I am using grunt-angular-gettext. I am trying to compile PO files present in PO folder and output the JSON files in different folder. The folder and JSON files are not getting generated. Below is the grunt config for compile: nggettext_compile: { …
user2439903
  • 1,277
  • 2
  • 34
  • 68