1.0.0-beta.21 (2023-03-09)
1.0.0-beta.20 (2023-03-09)
- 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
- make base path for i18next resources configurable (4e4b057)
1.0.0-beta.19 (2023-03-05)
- 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
1.0.0-beta.18 (2023-02-26)
1.0.0-beta.17 (2023-01-24)
- Allow astro versions greater than 1.0.0 as peer dependency. (0205d41)
1.0.0-beta.16 (2023-01-22)
1.0.0-beta.15 (2023-01-08)
- 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)
- 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)
1.0.0-beta.13 (2022-11-06)
- 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)
- 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
-
- defaultLanguage is now defaultLocale
- supportedLanguages is now locales
- i18next config is now split into two configs:
i18nextServer
andi18nextClient
1.0.0-beta.12 (2022-09-25)
- cli: filter out any file other than .astro files for generate (c34fa07)
1.0.0-beta.11 (2022-09-24)
1.0.0-beta.10 (2022-09-12)
1.0.0-beta.9 (2022-09-05)
1.0.0-beta.8 (2022-09-04)
- take astro base path into account when using localizePath or localizeUrl functions (5c35eaf), closes #27
1.0.0-beta.7 (2022-09-03)
- replace @proload/plugin-typescript with @proload/plugin-tsm (6f639ee)
1.0.0-beta.6 (2022-09-03)
1.0.0-beta.5 (2022-08-27)
- 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)
- 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
- 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)
- config is now a standalone file + some property names have changed for better clarity and consistency
baseLocale
is nowdefaultLanguage
supportedLocales
is now `supportedLanguages``
baseLanguage
is nowbaseLocale
in config options
1.0.0-beta.3 (2022-06-12)
- 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)
- add utility function to localize path + improve components and overall DX (d230f00)
- rename i18nextConfig to i18next in config + remove className and baseLanguage props for LanguageSelector
- 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)
- 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)
- load translation resources automatically + add example website (48dd98e)
1.0.0-alpha.8 (2022-04-30)
- workflow: download bundle artifact into dist path to include it into package (3fb5a78)
1.0.0-alpha.7 (2022-04-30)
- update publish workflow to include bundled package in dist (5428dc3)
1.0.0-alpha.6 (2022-04-30)
- add astro integration --> initialize i18next upon astro:config:setup (78ec744)
1.0.0-alpha.5 (2022-04-30)
- replace language-flag-colors with country-code-to-flag-emoji dependency (7d4d408)
1.0.0-alpha.4 (2022-04-30)
- include LanguageSelector component to release files (efa1961)
1.0.0-alpha.3 (2022-04-29)
- prefix language name with language flag emoji using language-flag-colors (7e09d93)
1.0.0-alpha.2 (2022-04-29)
- add LanguageSelector component to select language from supported locales (ad3fe2a)
- update package.json's exports value (86d7cf9)
- update utils path to relative in Trans component (c767fe3)
- add Trans component to interpolate translation strings with its contents (14ff1bd)