Bug locale cache frontend (json)

When recreating the locale cache after importing / changing some locale, the json cache for the frontend was not
totally correct for the loc data because the structure was the same as the backend and what it should not be.