Skip to content

Releases: yassinedoghri/astro-i18next

v1.0.0-beta.21

09 Mar 14:40
Compare
Choose a tag to compare
v1.0.0-beta.21 Pre-release
Pre-release

1.0.0-beta.21 (2023-03-09)

Bug Fixes

  • resolve astroFileFullPath to extract relative astroFilePath on Windows (c23cd27), closes #135

v1.0.0-beta.20

09 Mar 11:58
Compare
Choose a tag to compare
v1.0.0-beta.20 Pre-release
Pre-release

1.0.0-beta.20 (2023-03-09)

Bug Fixes

  • add missing script to regex in resolveRelativePathsLevel (9288efe), closes #129
  • get astro pages' full paths using fdir's withFullPaths instead of withRelativePaths (92a5178), closes #135

Features

  • make base path for i18next resources configurable (4e4b057)

v1.0.0-beta.19

05 Mar 16:22
Compare
Choose a tag to compare
v1.0.0-beta.19 Pre-release
Pre-release

1.0.0-beta.19 (2023-03-05)

Bug Fixes

  • add levels to relative path in script tag (1203d42), closes #129
  • use unjs/pathe to resolve generated localized files paths across OS (da80a8d), closes #135

Reverts

  • i18next-peer: reset i18next as package dependency (7906e19), closes #131

v1.0.0-beta.18

26 Feb 18:13
Compare
Choose a tag to compare
v1.0.0-beta.18 Pre-release
Pre-release

1.0.0-beta.18 (2023-02-26)

Bug Fixes

  • handle localizePath trailing slash depending on astro's trailingSlash config (880666c), closes #119

Features

  • language-selector: add languageMapping prop to rename languages of choice (20d94e4), closes #116

BREAKING CHANGE

i18next is now a peer dependency, add it to your dependencies:

npm install i18next

or

pnpm add i18next

or

yarn add i18next

v1.0.0-beta.17

24 Jan 11:08
Compare
Choose a tag to compare
v1.0.0-beta.17 Pre-release
Pre-release

1.0.0-beta.17 (2023-01-24)

Features

  • Allow astro versions greater than 1.0.0 as peer dependency. (0205d41)

v1.0.0-beta.16

22 Jan 17:56
Compare
Choose a tag to compare
v1.0.0-beta.16 Pre-release
Pre-release

1.0.0-beta.16 (2023-01-22)

Bug Fixes

  • use unjs/pathe to resolve cross OS public path (ad1d24f), closes #105

v1.0.0-beta.15

08 Jan 16:33
Compare
Choose a tag to compare
v1.0.0-beta.15 Pre-release
Pre-release

1.0.0-beta.15 (2023-01-08)

Bug Fixes

  • add levels to Astro.global pattern and scripts' import statements (9d88d79)
  • remove trailing slash from localized path (1998309), closes #77
  • use fileURLToPath to normalize publicDir pathname accross operating systems (3c07d6a), closes #79

v1.0.0-beta.14

27 Nov 16:35
Compare
Choose a tag to compare
v1.0.0-beta.14 Pre-release
Pre-release

1.0.0-beta.14 (2022-11-27)

Bug Fixes

  • expect locales folder to be in astro's publicDir config by default (ec72ff3), closes #64
  • import localizeUrl in HeadHrefLangs from index for access to astro-i18next runtime config (5e3b96c), closes #65
  • trans component: import utility functions from index (eea0d5d)

Features

  • plugins: set i18next plugins config for both server and client side setups (5ddb1c7), closes #68

v1.0.0-beta.13

06 Nov 17:59
Compare
Choose a tag to compare
v1.0.0-beta.13 Pre-release
Pre-release

1.0.0-beta.13 (2022-11-06)

Bug Fixes

  • add isFileHidden function + tests to prevent missing hidden files (7dcd0aa)
  • generate: replace isLocale check with user defined locales to prevent nested folders generation (a598e2e), closes #56
  • i18next-server: load locale files synchronously (e7892e2)
  • update types import to relative (#58) (44a5422)

Features

  • add option to show the default locale in the url (#51) (ea939db), closes #54
  • add support for route translations (db5200b), closes #50 #29
  • allow implicit key for when omitting i18nKey prop (ff14354), closes #53
  • simplified API + instanciate i18next both in server and client side (ed44510), closes #57 #46 #37

BREAKING CHANGES

  • defaultLanguage is now defaultLocale
  • supportedLanguages is now locales
  • i18next config is now split into two configs: i18nextServer and i18nextClient

v1.0.0-beta.12

25 Sep 07:35
Compare
Choose a tag to compare
v1.0.0-beta.12 Pre-release
Pre-release

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

Bug Fixes

  • cli: filter out any file other than .astro files for generate (c34fa07)