>From my viewpoint, I prefer using gettext po loader 

Le mardi 27 novembre 2018 13:58:36 UTC+1, Archimede a écrit :
>
> Hi all!
>
> in order to translate my Angular 6 page and in according with this 
> tutorial https://angular.io/guide/i18n I done the following simple 
> operations but I don't see any translated texy. Why? Thank you very much!
>
>
> 1) Translation definitions. In the new folder src/locale I created the 
> files messages.en.xlf and messages.it.xlf, with the following code 
> (obviously it changes the target for each language):
>
> <trans-unit id="introductionHeader" datatype="html">
>   <source>placeholder</source>
>   <target> bye bye (it-IT)</target>
>   <note priority="1" from="description">An introduction header for this 
> sample</note>
>   <note priority="1" from="meaning">User welcome</note>
>   <target state="new">bye bye</target>
> </trans-unit>
>
>
> 2) Tag definition. In my html page I insert the following tag, with a 
> placeholder:
>
> <h1 i18n="@@introductionHeader">
>     placeholder
> </h1>
>
>
> 3) In angular.json file, I insert the following rows:
>
> "architect": {
>         "build": {
>           "builder": "@angular-devkit/build-angular:browser",
>           "options": {
>             "outputPath": "dist/mobile-client",
>             "index": "src/index.html",
>             "main": "src/main.ts",
>             "polyfills": "src/polyfills.ts",
>             "tsConfig": "src/tsconfig.app.json",
>             "i18nFile": "src/locale/messages.it.xlf", //This
>             "i18nLocale": "it",                       //This
>             "i18nFormat": "xlf",                      // This
>             "assets": [
> (...)
>
>
> Then I tried to build and serve but I don't see the translated text "bye 
> bye". How can I solve it? Thank you very much!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to