Closed ck19992 closed 4 years ago
I think The method in the link is for c#. In javascript I could not translate combine string. Is there any better solution to solve?
Quite right, sorry, misssed that.
For javascript, the script that the browser receives is all pre-translated by i18n. i18n is intended for ASP.NET webapps where the dynamic stuff tends to happen on the server. There are other equivalent libraries for when the page is generated in the browser.
There may be a workaround if you can explain further what you are attempting to do - that is why can't you just code [[[MyName]]]
?
Understand. Thanks for your help. 😊
my javascript able to translate when the string is plain string. example: var name = [[[Name]]];
when my string is combine string, it could not translate. example var name = "MyName"; var translateName = "[[[" + name + "]]]";
is there any solution for this?