Skip to content

Latest commit

 

History

History
381 lines (267 loc) · 19 KB

CHANGELOG.md

File metadata and controls

381 lines (267 loc) · 19 KB

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

Bug Fixes

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

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)

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

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

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

Features

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

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

Bug Fixes

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

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

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

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

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

Bug Fixes

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

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

Bug Fixes

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

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

Bug Fixes

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

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

Bug Fixes

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

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

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

Bug Fixes

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

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

Bug Fixes

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

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

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
  • baseLocale is now defaultLanguage
  • supportedLocales is now `supportedLanguages``
  • baseLanguage is now baseLocale in config options

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)

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

1.0.0-beta.1 (2022-05-12)

Bug Fixes

  • include LanguageSelector component to release files (efa1961)
  • replace language-flag-colors with country-code-to-flag-emoji dependency (7d4d408)
  • update package.json's exports value (86d7cf9)
  • update publish workflow to include bundled package in dist (5428dc3)
  • update utils path to relative in Trans component (c767fe3)
  • workflow: download bundle artifact into dist path to include it into package (3fb5a78)

Features

  • add astro integration --> initialize i18next upon astro:config:setup (78ec744)
  • add LanguageSelector component to select language from supported locales (ad3fe2a)
  • add showFlag attribute to LanguageSelector to display the flag emoji or not (a4b2f98)
  • add Trans component to interpolate translation strings with its contents (14ff1bd)
  • load translation resources automatically + add example website (48dd98e)
  • prefix language name with language flag emoji using language-flag-colors (7e09d93)

1.0.0-alpha.9 (2022-05-12)

Features

  • load translation resources automatically + add example website (48dd98e)

1.0.0-alpha.8 (2022-04-30)

Bug Fixes

  • workflow: download bundle artifact into dist path to include it into package (3fb5a78)

1.0.0-alpha.7 (2022-04-30)

Bug Fixes

  • update publish workflow to include bundled package in dist (5428dc3)

1.0.0-alpha.6 (2022-04-30)

Features

  • add astro integration --> initialize i18next upon astro:config:setup (78ec744)

1.0.0-alpha.5 (2022-04-30)

Bug Fixes

  • replace language-flag-colors with country-code-to-flag-emoji dependency (7d4d408)

1.0.0-alpha.4 (2022-04-30)

Bug Fixes

  • include LanguageSelector component to release files (efa1961)

1.0.0-alpha.3 (2022-04-29)

Features

  • prefix language name with language flag emoji using language-flag-colors (7e09d93)

1.0.0-alpha.2 (2022-04-29)

Features

  • add LanguageSelector component to select language from supported locales (ad3fe2a)

1.0.0-alpha.1 (2022-04-27)

Bug Fixes

  • update package.json's exports value (86d7cf9)
  • update utils path to relative in Trans component (c767fe3)

Features

  • add Trans component to interpolate translation strings with its contents (14ff1bd)