Angular 6 using i18n Set default value
up vote
0
down vote
favorite
This is my steps
- change the template and add the i18n pipe
<h2 class="semi-bold text-white" i18n="@@loginSloganLeft">
Let Your Brochures Go Digital
</h2>
run the angular cli
ng xi18n --output-path locale
change the angular.json
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"i18nFile": "src/locale/messages.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "error",
Bun when I run the ng server (using the default production without parameters) I See the html text and not the .xlf file text
angular angular6 angular-i18n
add a comment |
up vote
0
down vote
favorite
This is my steps
- change the template and add the i18n pipe
<h2 class="semi-bold text-white" i18n="@@loginSloganLeft">
Let Your Brochures Go Digital
</h2>
run the angular cli
ng xi18n --output-path locale
change the angular.json
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"i18nFile": "src/locale/messages.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "error",
Bun when I run the ng server (using the default production without parameters) I See the html text and not the .xlf file text
angular angular6 angular-i18n
Don't share code as images.
– muradm
Nov 11 at 5:31
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This is my steps
- change the template and add the i18n pipe
<h2 class="semi-bold text-white" i18n="@@loginSloganLeft">
Let Your Brochures Go Digital
</h2>
run the angular cli
ng xi18n --output-path locale
change the angular.json
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"i18nFile": "src/locale/messages.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "error",
Bun when I run the ng server (using the default production without parameters) I See the html text and not the .xlf file text
angular angular6 angular-i18n
This is my steps
- change the template and add the i18n pipe
<h2 class="semi-bold text-white" i18n="@@loginSloganLeft">
Let Your Brochures Go Digital
</h2>
run the angular cli
ng xi18n --output-path locale
change the angular.json
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"i18nFile": "src/locale/messages.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "error",
Bun when I run the ng server (using the default production without parameters) I See the html text and not the .xlf file text
<h2 class="semi-bold text-white" i18n="@@loginSloganLeft">
Let Your Brochures Go Digital
</h2>
<h2 class="semi-bold text-white" i18n="@@loginSloganLeft">
Let Your Brochures Go Digital
</h2>
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"i18nFile": "src/locale/messages.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "error",
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"i18nFile": "src/locale/messages.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "error",
angular angular6 angular-i18n
angular angular6 angular-i18n
edited Nov 11 at 5:36
asked Nov 11 at 5:23
24sharon
4872935
4872935
Don't share code as images.
– muradm
Nov 11 at 5:31
add a comment |
Don't share code as images.
– muradm
Nov 11 at 5:31
Don't share code as images.
– muradm
Nov 11 at 5:31
Don't share code as images.
– muradm
Nov 11 at 5:31
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53246071%2fangular-6-using-i18n-set-default-value%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Don't share code as images.
– muradm
Nov 11 at 5:31