One potential option:
- Force translated text retrieval to go through accessor function (instead of directly accessing the global
t
pointer). - In that accessor function, if current language’s text is
NULL
, return the text from the default language (en-us
).- If that’s still
NULL
, return the poop emoji.
- If that’s still
- In
json2h.py
, provide fixed size to generated arrays in the generated.h
files, and do not storeen-us
duplicates … storeNULL
.