translation for select - not working
translation for select - not working
Hello
I am having a little problem
for the language translation, in my table definition I use : "language": dtLanguage()
and then (using i18next) in my specific language file, I have all the translations. This works perfectly but for the select part.
This is what I added in my translation file - can anybody see where is the error ? the translation file does not, it serves everything else (buttons etc) correctly, but all the selects (and only them) are still in english. I am using the latest datatable. Any idea of where/what to check is very much welcome - merci
"select": {
"rows": {
"_": " %d lignes sélectionnées",
"0": "Cliquer pour sélectionner",
"1": "1 ligne sélectionnée"
}
},
"buttons":{
"copySuccess":{
"1":"Copier une ligne dans le presse-papier",
"_":"copier %d lignes dans le presse-papier"
}
}
Answers
Don't really see what the issue is ... maybe it helps to look at my stuff which is working (took me quite a while ...)
We'd probably need to see the page or at least the full code to understand why your code isn't working.
Allan
@rf1234 indeed problem solved
I added
the translations are thus all in the same format, read from translations.json
I just realised that I was mistaken in the way I was doing it. This is how I did the others -
working to much
Thanks for the help and the patience
Pat
You are welcome, Pat. Just in case you or someone else need this for Editor as well. I gathered this:
sorry, I had forgotten how I solved the problem the first time around, so here is my solution - I am using i18n for all the translations, I have users for various languages
I created a function dtLanguage() as
then in the tables I have
All works well when I remember what I have been doing ... but like this I can have a multilane applications, depending on the user needs.
Hope this can help somebody.
Pat
Awesome. Thanks for sharing the knowledge everyone .
I love this community!
Allan