721 questions
1
vote
2
answers
3k
views
How to change the language in primeng version 19?
I'm using the p-datepicker component but I would like to translate it into French and Spanish. How can I do this in Angular/Primeng 19?
0
votes
1
answer
154
views
How to test an Angular Component with TranslateTestingModule.withTranslations() using MockBuilder (from ng-mocks)
i am using ng-mocks and want to test an angular component which uses translations.
i would love to use the .withTranslation to respect the language file structure.
but yet i've not found a way to use ...
1
vote
0
answers
43
views
How to get HTML translate attribute work with angular-translate
I am trying to add the "translate" attribute (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/translate) to my HTML elements in my angularjs (v1) app which also has ...
0
votes
2
answers
109
views
Angular, How do not use translate pipe in some situations
In mat-table I have API for getting column names, aligns and etc. After getting column names from backend, I put column name in translate pipe for internationalization.
But, I do not want to use ...
0
votes
1
answer
455
views
Same translations in different files
I have two .html files that use the same translation i18n="@@MY_TRANSLATION". Is it okay to use the same i18n in two different files, or even the text is the same I do need to use different ...
0
votes
0
answers
47
views
Angular insert a char-limit: Property 'invalid' does not exist on type 'HTMLTextAreaElement'. Did you mean 'oninvalid'?
I want to add a character limit and I did this:
but it shows an error by "invalid" last line
<mat-form-field class="fbinput" appearance="outline" style="white-...
0
votes
1
answer
492
views
Translate how to make a dynamic JSON entry
I init the first time my $translateProvider as this:
app.config(["$translateProvider", function ($translateProvider) {
$translateProvider.translations('en', translate_EN);
$...
0
votes
1
answer
2k
views
Reload page or dynamically update content after switching language?
I'm struggling with design of i18n handling, what should we do after a user has changed the language?
Reload the browser with the selected language
Dynamically update the labels and other ...
0
votes
2
answers
664
views
How to use functions in a inline HTML translate pipe?
My goal is to minimize the code using the Angular translate pipe. Currently, I have to use 8 curly brackets and write "translate" twice... a better way must exist.
My current code looks like:...
1
vote
0
answers
1k
views
Translate a JSON file using ngx-translate
I have a JSON file with static data that I want to translate it.
{
"id": "",
"name": "text",
"label": "Text&...
0
votes
0
answers
242
views
How to translate ng2-smart-table action columnTitle and action title
How to translate ng2-smart-table action columnTitle and action title.
I was trying to resolve translation issue for Acknowledgement, But still not sure why it isn't working
violationSettings:any = {};
...
0
votes
1
answer
640
views
Mat-tab angular-localize proper way to translate
Lets say i have mat tam created like this
<mat-tab-group>
<mat-tab label="nameToBeTranslated">
</mat-tab>
</mat-tab-group>
How can i translate that label?
6
votes
1
answer
2k
views
Is there a way to translate css selectors(::after, ::before) content using ngx-translate?
Is there a way to translate css selectors(::after, ::before) content using ngx-translate ?
.custom-file-label::after {
content: "Browse"
}
0
votes
0
answers
68
views
Translation files in one module
I want to load multiple languages translation files in one module. I have come across Multihttploader
Will it be good to use Multihttploader on big application?
2
votes
2
answers
3k
views
ngx-translate with JSONfile stored in server
I am trying to feed the translation key-value pair in my system through a JSON file stored in a server. The server has a file named "en.json". What I have currently done:
App Module Imports:
...