Skip to content

Commit

Permalink
Fix incorrect transform vs runtime table
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks committed Dec 4, 2020
1 parent 7844a49 commit 2bbd805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/localize/README.md
Expand Up @@ -86,7 +86,7 @@ lit-localize supports two output modes: _transform_ and _runtime_.
| ------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| Output | A full build of your application for each locale, with all `msg` calls replaced with static localized templates. | A dynamically loadable template module for each target locale. |
| Make template localizable | `msg()` | `msg()` |
| Configure | `const {getLocale, setLocale} =`<br>`configureLocalization(...);` | (Optional)<br><br> `const {getLocale} =`<br>`configureTransformLocalization(...);` |
| Configure | (Optional)<br><br> `const {getLocale} =`<br>`configureTransformLocalization(...);` | `const {getLocale, setLocale} =`<br>`configureLocalization(...);` |
| Switch locales | Refresh page and load a different `.js` file | Call `setLocale()` and re-render using any of:<br><br>- `lit-localize-status` event<br>- `setLocale` promise<br>- `Localized` mixin for `LitElement` |
| Advantages | - Fastest rendering<br>- Fewer bytes for a single locale | - Faster locale switching<br>- Fewer _marginal_ bytes when switching locales |

Expand Down

0 comments on commit 2bbd805

Please sign in to comment.