@wuchale/astro
Patch Changes
Section titled “Patch Changes”- Updated dependencies [
89fec64,d53178a,2f195f3,346f49f,654b5e9,85c7473,eb49dc8,3371f37,8c9d854,b7f362c,8771568]:- wuchale@0.22.0
Minor Changes
Section titled “Minor Changes”-
Add support for importing a URL localize function from any module at runtime (
347ca5e)This adds support for cases where complete flexibility is needed for URLs, for example when the site targets different domain names for different locales, and when one locale can be used in different domains. Now a custom localize function that does the localization can be implemented, and wuchale only handles the translation. This can be used by providing the module path:
export default {// ...adapters: {svelte({url: {localize: 'src/lib/url-util.js',patterns: [// ...]}})}}The module has to export a
localizefunction that is of type:type URLLocalizer = (url: string, locale: string) => string;To just use the default of prefixing the locale to the path, set
localize: true.
Patch Changes
Section titled “Patch Changes”Patch Changes
Section titled “Patch Changes”Patch Changes
Section titled “Patch Changes”Patch Changes
Section titled “Patch Changes”- Fix error when parsing self closing tags in expressions due to astro’s limitation (
1d5ec83)
Patch Changes
Section titled “Patch Changes”- Fix various parsing errors caused by differences in offset units (bytes in go, indices in js) when files contain unicode characters (
67c4e82)
Patch Changes
Section titled “Patch Changes”-
Allow return outside function for astro frontmatter (
823f78e) -
Updated dependencies [
823f78e]:- wuchale@0.19.2
Patch Changes
Section titled “Patch Changes”- Fix parsing errors on object attributes, visit spread attributes (
8fda2a4)
Patch Changes
Section titled “Patch Changes”- Fix error on empty file (
3334c2a)
Patch Changes
Section titled “Patch Changes”-
Fix possible infinite retries on ai translate error/mistake (
2b9a61a) -
Updated dependencies [
2b9a61a]:- wuchale@0.19.1
Minor Changes
Section titled “Minor Changes”- 5f1499b: Add the Astro adapter! Thank you @tarekwiz for starting it!
Patch Changes
Section titled “Patch Changes”- Updated dependencies [3ca7aac]
- Updated dependencies [9de6b79]
- Updated dependencies [fad845d]
- Updated dependencies [197bb11]
- Updated dependencies [64f7485]
- Updated dependencies [63fb176]
- Updated dependencies [f92c641]
- wuchale@0.19.0