You are reading a single comment by @bb5 and its replies. Click here to read the full conversation.
  • Hi,
    https://www.espruino.com/Bangle.js+Locale is still refering to:

    You can run bin/language_scan.js to get a list of all the missing translations.

    After some digging i found that current approach should be as in https://github.com/espruino/BangleApps/blob/master/lang/README.md

    core/tools

    Also I would like to have tool to search for app that is using certain translation to put it in context. I've done quick and dirty setup as proof of concept

    cat pl_PL.json | jq 'del(.GLOBAL."//") | .GLOBAL | to_entries[] | "\(.key)"' | sed -e 's/^/\/\\*LANG\\*\//' > strings.in 
    grep -r -E -f strings.in ../apps
    

    It would be better to prepare something like this in js as this would be agnostic tool.
    HTH

About

Avatar for bb5 @bb5 started