mirror of https://github.com/status-im/consul.git
74070c0955
This commit adds a couple of debug utilities to help us to continue slowly adding i18n support: - We've added a CONSUL_INTL_DEBUG env/cookie variable to turn off variable interpolation within the t helper so you can see which variables are being interpolated. - We've added a CONSUL_INTL_LOCALE env/cookie which currently supports two 'pseudo-locales' - la-fk (fake latin) and - (just dashes) either of which will make it easier to see what has not been localized until we can add prettier rules to prevent adding any copy into templates at all. I would guess if we ever translated the app we would use this for looking at things whilst developing also - but as yet I've not adding anything for that here seeing as we don't translate anything. Both variables are dev-time only and all code for this is removed from the production build. |
||
---|---|---|
.. | ||
dom | ||
editor | ||
filter | ||
form | ||
helpers | ||
http | ||
intl | ||
routing | ||
search | ||
storage | ||
ticker | ||
acls-status.js | ||
ascend.js | ||
atob.js | ||
btoa.js | ||
callable-type.js | ||
create-fingerprinter.js | ||
distance.js | ||
get-environment.js | ||
get-form-name-property.js | ||
isFolder.js | ||
keyToArray.js | ||
left-trim.js | ||
maybe-call.js | ||
merge-checks.js | ||
minimizeModel.js | ||
non-empty-set.js | ||
promisedTimeout.js | ||
right-trim.js | ||
templatize.js | ||
tomography.js | ||
ucfirst.js | ||
update-array-object.js |