If you’re starting from scratch, have a look at the Rosey documentation to get set up, then move on to the next step.
If your site is already setup for i18n on CloudCannon, migrating to Rosey is easy.
Migrating your site#
- Initialize NPM on your site with
npm initif you haven’t already - Install Rosey with
npm install rosey - Rename your
_localesdirectory torosey/localesand convert each file to JSON. - Add a
rosey.ymlfile with some basic configuration:
rosey.yml
copied
source: "path/to/your/built/site" # e.g. _site
tag: "data-i18n" # the attribute you've tagged your translatable elements with
- At this point, you can already start testing locally. Run
npx rosey build --serveand see your translated site running on a local server.