Skip to content

@wuchale/astro

  • 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 localize function 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.

  • Fix error on empty file (regression fix) (2b1f249)

  • Updated dependencies [324fb80]:

    • wuchale@0.19.4
  • Fix error when parsing self closing tags in expressions due to astro’s limitation (1d5ec83)
  • Fix various parsing errors caused by differences in offset units (bytes in go, indices in js) when files contain unicode characters (67c4e82)
  • Allow return outside function for astro frontmatter (823f78e)

  • Updated dependencies [823f78e]:

    • wuchale@0.19.2
  • Fix parsing errors on object attributes, visit spread attributes (8fda2a4)
  • Fix error on empty file (3334c2a)
  • Fix possible infinite retries on ai translate error/mistake (2b9a61a)

  • Updated dependencies [2b9a61a]:

    • wuchale@0.19.1
  • 5f1499b: Add the Astro adapter! Thank you @tarekwiz for starting it!
  • 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