internationalization - Angularjs Translate with json fille comments -


it possible use json comments organize language files? created plunkr example error on browser console "syntaxerror: unexpected token /"

{  "headline": "hello there!", /* comment*/  "lang_de_de": "lang: german",   "lang_en_us": "lang: english" } 

plunkr example

since file has valid json , json not provide comments in syntax: no, can not add comments there. it's against specification of json, sorry.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -