Open flipflopsimsommer opened 10 years ago
If balderdashy/sails accepts the pull, i think i could work this in
one problem i see is:
if the visitor to the website is not logged in as a user, the locale will never be set.
i hope the accept it soon, it's only 1 line and by default nothing chances. as i understand and combined with my code it would work something linke this
okey just realised i should past the defaultLocale as well i will make a new pull request sails
updated the url to the new pull request
supporting multi language is something important for cms.
/config/i18n.js
in your policie:
then you just use res.__('test')
enable autoupdate in lang.json file.