What are the best internationalization practices in Vue?
I am currently thinking of having a βstringsβ object that contains all the strings, and then a bit of ajax magic to update this strings object based on a json file with translated strings in certain languages.
Anyone have any better ideas? I am currently having problems using the string method, since the string object must be loaded first.
Is there a placeholder function for strings in Vue? For example, I have a menu whose entries are stored in my vm data. Is there a way to set this to a static string and then automatically bind it to another string if it exists?
Simon hyll
source share