Skip to content

Releases: yassinedoghri/astro-i18next

v1.0.0-beta.11

24 Sep 12:37
Compare
Choose a tag to compare
v1.0.0-beta.11 Pre-release
Pre-release

1.0.0-beta.11 (2022-09-24)

Bug Fixes

  • generate: ignore any directories/files that begin with an underscore (a7e6f08), closes #43

v1.0.0-beta.10

12 Sep 15:32
Compare
Choose a tag to compare
v1.0.0-beta.10 Pre-release
Pre-release

1.0.0-beta.10 (2022-09-12)

Bug Fixes

  • plugins: normalize named imports to call in i18next's use function (6928ddc), closes #38

v1.0.0-beta.9

05 Sep 19:06
Compare
Choose a tag to compare
v1.0.0-beta.9 Pre-release
Pre-release

1.0.0-beta.9 (2022-09-05)

Bug Fixes

  • reset iso-639-1 and locale-emoji as dependencies (b2863d7), closes #32

v1.0.0-beta.8

04 Sep 14:52
Compare
Choose a tag to compare
v1.0.0-beta.8 Pre-release
Pre-release

1.0.0-beta.8 (2022-09-04)

Bug Fixes

  • take astro base path into account when using localizePath or localizeUrl functions (5c35eaf), closes #27

v1.0.0-beta.7

03 Sep 16:56
Compare
Choose a tag to compare
v1.0.0-beta.7 Pre-release
Pre-release

1.0.0-beta.7 (2022-09-03)

Bug Fixes

  • replace @proload/plugin-typescript with @proload/plugin-tsm (6f639ee)

v1.0.0-beta.6

03 Sep 15:15
Compare
Choose a tag to compare
v1.0.0-beta.6 Pre-release
Pre-release

1.0.0-beta.6 (2022-09-03)

Bug Fixes

  • Rollup failed to resolve import 'types' (#33) (2807989)

v1.0.0-beta.5

27 Aug 17:06
Compare
Choose a tag to compare
v1.0.0-beta.5 Pre-release
Pre-release

1.0.0-beta.5 (2022-08-27)

Bug Fixes

  • build: remove components and utils from build + set components export to src (bb7ab0f), closes #18
  • generate: inject changeLanguage statement after imports and before frontmatter logic (4d74e0b), closes #23
  • type definitions for exported astro components (bb60949), closes #18

v1.0.0-beta.4

21 Aug 15:50
Compare
Choose a tag to compare
v1.0.0-beta.4 Pre-release
Pre-release

1.0.0-beta.4 (2022-08-21)

Bug Fixes

  • add depth level to relative import declarations (02ddb76)
  • example: add isCurrentPath function comparing current url to localized path (ee90afb)
  • language-selector: replace country-code-to-flag-emoji dependency with locale-emoji (6aee21d), closes #14

Features

  • allow using i18next plugins directly in the config (114ccd7)
  • cli: add generate command to create localized astro pages (17982cf), closes #13
  • cli: add success feedback to generate command + add generated filepaths with verbose (9e3d4f5)
  • move astro-i18next config in a standalone file to load it for CLI commands (bdf2408)

BREAKING CHANGES

  • config is now a standalone file + some property names
    have changed for better clarity and consistency
  • baseLanguage is now defaultLanguage

  • supportedLocales is now supportedLanguages

  • astro-i18next does not load translation files anymore, the functionality has been deported to i18next's backend plugins. Use i18next-fs-backend to have the same functionality as previous versions.

v1.0.0-beta.3

12 Jun 17:20
Compare
Choose a tag to compare
v1.0.0-beta.3 Pre-release
Pre-release

1.0.0-beta.3 (2022-06-12)

Features

  • add HeadHrefLangs component + localizeUrl util function (cd4095e)
  • add i18next namespaces + validate config before processing it (10b40cc)
  • allow passing functions to i18next init (ed7c721)

v1.0.0-beta.2

06 Jun 14:48
Compare
Choose a tag to compare
v1.0.0-beta.2 Pre-release
Pre-release

1.0.0-beta.2 (2022-06-06)

Features

  • add utility function to localize path + improve components and overall DX (d230f00)

BREAKING CHANGES

  • rename i18nextConfig to i18next in config + remove className and baseLanguage props
    for LanguageSelector