See: facebook/fbt#240
Run:
yarn dev
# OR:
yarn build
yarn start
Open: http://0.0.0.0:3000/
Inspect it in your browser (don't forget to click "Edit as HTML" to actually see the HTML entities). Currently, it renders this:
<div>This renders <code>nbsp</code> correctly ✅</div>
<div>This DOESN'T render <code>nbsp</code> correctly ❌</div>
<div>Other HTML entities: × & < " ↓ ℃ ℉</div>
<div>Other HTML entities: × & < " ↓ ℃ ℉</div>
yarn fbt-manifest --src=pages --enum-manifest=translations/enum_manifest.json --src-manifest=translations/src_manifest.json
yarn run fbt-collect --options=__self --pretty --manifest < translations/src_manifest.json > translations/source_strings.json
yarn fbt-translate --source-strings=translations/source_strings.json --pretty --translations translations/in/*.json --output-dir=translations/out --jenkins