Skip to content

Goodspeed is in closed beta. Enter your email and we check your invite on the spot: invited accounts start free today, and everyone else joins the waitlist in one click. Get started

Skip to content
Goodspeed

Connect i18next to your Goodspeed app

Locale detection and JSON translation files generated per locale. lib/i18n.ts wires i18next with expo-localization for automatic language switching. Goodspeed wires i18next into every app that needs it at generation time, so you start with a working integration, not a blank config and a documentation tab.

WHAT GETS WIRED IN

Built into every i18next build

Every app Goodspeed generates with i18next includes these wired integrations from the first build. No manual setup required.

ItemDescriptionStrength
Device language detectedThe preferred language is read from the device and matched against the locales declared in gas.config.ts.Interface
Unknown locales fall backAn unrecognised language uses the declared default rather than crashing.Reliability
One file per localeen.json and a file for each declared locale are generated with matching key sets.Interface
Skipped when unusedA single-locale app never starts the library at all, so it carries none of the weight.Setup
Gaps fail the buildA workflow compares every locale against en.json on pull requests, so a missing translation never reaches anyone.Reliability

Source: the Goodspeed app foundation · i18n

REAL GENERATED CODE

A snippet from a i18next integration the pipeline ships

This pattern is lifted from the engineered plumbing that ships inside every Goodspeed app. The studio generates i18next integration code like this for every app that includes it, not a placeholder you have to fill in yourself.

  1. Locale detection

    // lib/i18n.ts
    function getDeviceLocale(): string {
      try {
        const locales = getLocales();
        const deviceLang = locales[0]?.languageCode
          ?? i18nConfig.defaultLocale;
        if (i18nConfig.locales.includes(deviceLang)) {
          return deviceLang;
        }
        return i18nConfig.defaultLocale;
      } catch {
        return i18nConfig.defaultLocale;
      }
    }
GDaily Allergens

Today's log

Gluten
Tree nuts
Shellfish
Dairy
HomeScanLogProfile

START WITH I18NEXT

Your i18next integration, generated