angular-localization icon indicating copy to clipboard operation
angular-localization copied to clipboard

Problem with embedded JSON

Open GiperScriper opened this issue 11 years ago • 2 comments

Hi, when i try to use json format like this : { "main": { "header": "myHeader" } } from my template i can access this like filename.main.header, but on Network Tab (Chrome) trying to get file ../main/header.file_extension, as you can see, "main" key from json file occurs in path like directory, How can i avoid this?

GiperScriper avatar Jan 29 '15 12:01 GiperScriper

The framework doesn't support nested json. Can you not split up the nested objects into different json files so that each file has a single-level json?

doshprompt avatar Jan 29 '15 19:01 doshprompt

For small-ish apps like mine, a single language file would be nice as it would resolve the issue I'm having with language files loading slow; this would be a nice-to-have anyway but it'd also be a decent work around for #55.

lance-anderson avatar Oct 17 '15 05:10 lance-anderson