Skip to content

A simple starter to get up and developing quickly with internationalized Gatsby

Notifications You must be signed in to change notification settings

locize/locize-gatsby-example

Repository files navigation

This is the example app used in this blog post.

synchronize with locize

Here, you basically keep the existing setup but are synchronizing the translation files with locize. This can be done on-demand or on the CI-Server or before deploying the app.

What to do to reach this step:

  1. in locize: signup at https://locize.com/register and login
  2. in locize: create a new project
  3. in locize: add "de" as additional language (this can also be done via API)
  4. install the locize-cli

use the locize-cli

Use the npm run syncLocales script to synchronize your local repository with what is published on locize.

Alternatively, you can also use the npm run downloadLocales script to always download the published locize translations to your local repository before bundling your app.


Gatsby

Gatsby minimal starter

🚀 Quick start

  1. Create a Gatsby site.

    Use the Gatsby CLI to create a new site, specifying the minimal starter.

    # create a new Gatsby site using the minimal starter
    npm init gatsby
  2. Start developing.

    Navigate into your new site’s directory and start it up.

    cd my-gatsby-site/
    npm run develop
  3. Open the code and start customizing!

    Your site is now running at http://localhost:8000!

    Edit src/pages/index.js to see your site update in real-time!

  4. Learn more

🚀 Quick start (Gatsby Cloud)

Deploy this starter with one click on Gatsby Cloud:

Deploy to Gatsby Cloud

About

A simple starter to get up and developing quickly with internationalized Gatsby

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published