Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

mrtnzlml-archive/bug-fbt-nbsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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&nbsp;renders&nbsp;<code>nbsp</code>&nbsp;correctly&nbsp;✅</div>
<div>This DOESN'T render <code>nbsp</code> correctly ❌</div>

<div>Other HTML entities: × &amp; &lt; " ↓ ℃ ℉</div>
<div>Other HTML entities: × &amp; &lt; " ↓ ℃ ℉</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