Skip to content

gt-react-native@11.0.0

Choose a tag to compare

@github-actions github-actions released this 04 Jul 02:32
· 126 commits to main since this release
858323a

Major Changes

  • #1816 463a8db Thanks @bgub! - Add a config-aware resolveCanonicalLocale helper and remove the public getGTClass helper.

  • #1439 e12fb17 Thanks @ErnestM1234! - Prepare Odysseus major releases for core runtime packages.

  • #1816 463a8db Thanks @bgub! - Remove the deprecated useGTClass hook from public entry points.

  • #1821 40db0c5 Thanks @bgub! - Remove useVersionId from public package entrypoints.

    The getVersionId helper remains available from public function entrypoints and gt-i18n/internal.

  • #1439 8a2f7ee Thanks @ErnestM1234! - Simplify translation option types. Replace deprecated inline and dictionary option aliases with GTTranslationOptions, use interpolation variables for dictionary t() options, and trim higher-level type exports to avoid exposing internal translation option fields.

Patch Changes

  • #1439 947fe0c Thanks @ErnestM1234! - Fix useVersionId() throwing and useLocaleDirection() requiring a locale argument in the client and server entrypoints.

    useVersionId() now returns the current version id (instead of throwing the react-core "not implemented" error), and useLocaleDirection() once again accepts an optional locale that defaults to the current locale. The shared implementation now lives in @generaltranslation/react-core/hooks, so gt-react and gt-react-native use the same behavior; the RSC entrypoint keeps its stricter signatures.

  • #1439 b3bb391 Thanks @ErnestM1234! - Store cookie names in I18nConfig so custom cookie names work before the condition store is initialized.

    • gt-i18n: Removed the unused React locale cookie name from the shared GT config type.
    • @generaltranslation/react-core: ReactI18nConfig now accepts localeCookieName, regionCookieName, and enableI18nCookieName, exposes getters that fall back to the default names, and exports the default storage names from the pure entrypoint.
    • gt-next: Imports default cookie names from the React Core pure entrypoint instead of the removed React Core cookie constants subpath.
    • gt-react: The browser condition store now resolves cookie names from I18nConfig instead of hardcoding the defaults, so custom cookie names passed to initializeGT() are honored for both reads and writes.
    • gt-react-native: Native condition storage now resolves its store keys from I18nConfig, matching gt-react behavior.
    • gt-tanstack-start: parseLocale() reads and writes the locale cookie using the configured cookie name instead of the default.
  • #1439 bd42777 Thanks @ErnestM1234! - Render GTProvider loading fallbacks inside the native GT context so app children can safely be used as the fallback while translations load.

  • #1439 d48604e Thanks @ErnestM1234! - Trigger an odysseus prerelease patch for all publishable packages.

  • #1439 5752fe8 Thanks @ErnestM1234! - Organize package entrypoint exports and replace re-export-only imports with direct export declarations.

  • #1439 57047ea Thanks @ErnestM1234! - Rename the React Native GTProvider loading fallback prop to fallback.

  • #1439 72c6a85 Thanks @ErnestM1234! - Add portable selector hook return types for React Native declarations.

  • #1439 97dc7f4 Thanks @ErnestM1234! - Remove default exports from package entrypoints and internal source modules.

    Use named imports for affected public entrypoints, including import { plugin } from 'gt-react-native/plugin'. The gt-next/link entrypoint keeps its default export to match next/link.

  • #1439 9804aa4 Thanks @ErnestM1234! - Remove three orphaned, never-imported files:

    • gt-tanstack-start: condition-store/WritableConditionStore.ts (an orphaned local copy; the package uses gt-i18n's writable condition store).
    • gt-react-native: utils/utils.ts (readAuthFromEnv, no consumers).
    • gt-i18n: i18n-cache/translations-manager/utils/types/translations-manager.ts (unreferenced TranslationsManagerConfig type).
  • Updated dependencies [463a8db, 37e0080, 8870496, 1212135, 04f419d, b72c30b, 72e9e16, 42a440f, fd22c68, bea8233, 8870496, 5736d58, 04b5064, 947fe0c, 5adeede, 328795b, 1f53e42, b3bb391, d48604e, 88f3a2e, e12fb17, 44bc998, 5752fe8, b7d44dc, 9561761, 72c6a85, 3d95277, 97dc7f4, c1e0a0f, 85a0c19, 693288d, 463a8db, e343775, 40db0c5, 8a2f7ee, c5364f9, 2e85ebd, 2c46baf, d5cf2d3, 9e78cf0, 4986567, 795edc8, d863bcf, 11ecf87, 03bae6d, 5d42608, 9804aa4, 338e5e8, 8834c51, 2ca78ec, 195f009]:

    • gt-i18n@1.0.0
    • @generaltranslation/react-core@11.0.0
    • generaltranslation@9.0.0
    • @generaltranslation/format@0.1.2
    • @generaltranslation/supported-locales@2.1.2