A demo todo app, demonstrating string management with Frontitude's developer tools.
Frontitodo's stack:
- React
- React Hooks
- React-i18next
- String files (see
public/locales)- Flexibly structure your files, keeping all the files in the same folder or in multiple folders (multiple folders CLI support is coming soon).
- i18next configuration (see
i18n.js)- Use
loadPathoption to support your file structure.
- Use
pullcopyscript (seepackage.json)- An easy setup that lets you configure the
frontitude pullcommand once and use it frequently without having to set the options each time.
- An easy setup that lets you configure the
- DIY, continue to read how to install the demo app locally and see the entire process, from design to development, in action.
- Create a Frontitude account. If you don't already have one, sign up for a fresh new Frontitude account, or ask for an invitation from one of your team members to join your team’s workspace.
- Upload content to your Frontitude account. Clone the Frontitodo design file (Figma, Adobe XD, Sketch (Soon)) and upload the designs to Frontitude.
- Set keys. In order to reference texts from the code, you’ll need to assign texts with unique keys in Frontitude.
- Set up the CLI. Install the Frontitude CLI by running
npm install -g @frontitude/cliand thenfrontitude init. - Submit a sample edit. In the design tool, edit one of the connected texts and sync it with Frontitude.
- Sync edits with the code. From the terminal, run
frontitude pullornpm run pullcopyto get the latest edits.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Pulls the latest final copy changes from the connected Frontitude workspace, using Frontitude's CLI. The command merges the latest copy into the configured destination file.
Once set up, the CLI configurations are stored in frontituderc.json under the root folder.
You can learn more in the Frontitude guides section.
