Invariant.json
I just noticed that there's a new file in the Locales folder, Invariant.json. This file contains some language strings that aren't in the language specific files (for instance in Mapping.en-US.json.js.
I cannot find any info about this file Invariant.json in the documentation for 4.3. Can anyone tell me what it is? Can I change the language in it without breaking something?
-
Same question here.
0 -
Yes, the Invariant.json file was actually supposed to be renamed to Mapping.en-US.json.js as part of our automatic build process, but this was broken in 2.4, which results in both the mysterious Invariant.json and an out-of-date Mapping.en-US.json.js file. As a result, some of our partners who have translated our viewer from English have noticed a few English strings popping up in their viewers. We've fixed this in version 2.4.1, which will be released very soon (refer to issue GVH-6035 GVH-388). In the meantime, if you have translated Invariant.json, you can rename it to be the Mapping.xx-XX.json.js file for your locale (where "xx-XX" is your locale) -- that should keep the English strings out of your translated viewer.
If you haven't translated your viewer, you can safely remove Invariant.json; it's not being used by the viewer.
*edit: the issue is actually GVH-388, although GVH-6035 is related.
0 -
Thanks Jordan, that's very useful.
I only noticed Invariant.json when I was trying to find the source of the few strings that wouldn't show up in Norwegian after I had translated the other language files. We'll update to 2.4.1 and translate the new strings in the language files then, I guess (so we don't have to translate the whole of Invariant.json).
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare