Fusion.js Todo Boilerplate
This repository is an example implementation of a Fusion.js application that includes:
- Localization and Translations
- Uses fusion-plugin-i18n-react for easy usage within React
- Supports English, German, French, and Japanese locales
- Dynamically changes user locale based on
accept-language
header - Allows specific language selection with locale urls
- i.e.
/en-US
will force english translations
- i.e.
- Custom Plugin Creation
- A custom fusion plugin provides todomvc-app-css styling as well as locale specific redirects
Localization Demo
Running Locally
# Install dependencies
yarn install
# Run in development mode
yarn dev
ToDo
- There are currently 0 tests in this repo 😢
- In the future, fusion test utils should be used to cover the logic within the custom
TodoPlugin
- In the future, fusion test utils should be used to cover the logic within the custom
- Rather than inject the todomvc styling with our custom Plugin, we should be able to use the fusion-plugin-react-helmet-async, but there currently seems to be a miss-match between assetUrl values in node vs. browser.