@edgekits/astro-i18n 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ All notable changes to this package are documented here. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the package uses
|
|
5
5
|
[Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## 0.1.4 — 2026-10-14
|
|
8
|
+
|
|
9
|
+
No runtime changes: the `astro-i18n` skill only, found while building astro-edgekits-core.
|
|
10
|
+
|
|
11
|
+
### Skill
|
|
12
|
+
|
|
13
|
+
- Forms: the action example takes `accept: 'form'`, and the enhanced submit sends `FormData`. Without it Astro 7 answers the native no-JS POST with 415 `UNSUPPORTED_MEDIA_TYPE`.
|
|
14
|
+
- Forms: an empty field reaches the action as `null`; the server schema gives that type error the `REQUIRED` code, so the no-JS path reports `REQUIRED` instead of zod's untranslated `invalid_type` text. The client mirror reports `REQUIRED` for an empty email too.
|
|
15
|
+
- Forms: the no-JS error helpers resolve field codes through the `messages` namespace, as the form-level error does, and never print a raw code.
|
|
16
|
+
- Forms: the client email regex is described as a UX approximation; the server's zod is the authority (the old text claimed the two match byte for byte).
|
|
17
|
+
- SEO: list pages show every post in every locale, the URL locale's version where one exists and the default locale's otherwise, with a badge on the card and the banner in `content` mode.
|
|
18
|
+
- SEO: a fallback post stays 200 with its canonical on the default-locale URL, no robots meta and hreflang for the locales the post exists in; the layout takes a `canonicalOverride`, and the sitemap lists only existing post files.
|
|
19
|
+
- The checklists and "Using the skill" cover both.
|
|
20
|
+
|
|
7
21
|
## 0.1.3 — 2026-10-13
|
|
8
22
|
|
|
9
23
|
### Fixed
|
package/README.md
CHANGED
|
@@ -602,6 +602,9 @@ form library and the skill uses it, with the same error codes and still no zod i
|
|
|
602
602
|
code, using the package's locale constants and helpers: a `SeoHreflangs` component and
|
|
603
603
|
`<html lang>` in the base layout, `sitemap.xml`, `[lang]/rss.xml`, `llms.txt` and `robots.txt`
|
|
604
604
|
endpoints.
|
|
605
|
+
For a blog in several languages, ask to "list every post in every locale": an untranslated
|
|
606
|
+
post is listed and shown in the default locale with the banner, and its page points its
|
|
607
|
+
canonical at the original instead of using `noindex`.
|
|
605
608
|
|
|
606
609
|
### Rules the agent follows
|
|
607
610
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edgekits/astro-i18n",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Edge-native i18n for Astro on Cloudflare Workers: translations in Workers KV, a per-namespace edge cache invalidated by the Purge API, and typed keys.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astro",
|