@riebeckite/plugin-l10n 0.0.5 → 0.0.7

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/README.md CHANGED
@@ -17,7 +17,7 @@ export default defineConfig({
17
17
 
18
18
  ## Locale detection
19
19
 
20
- Use `README.en.md` as the recommended filename form. The plugin also accepts `README-en.md`, `README_en.md`, and configured BCP 47-style tags such as `README.en-US.md` and `README.zh-CN.md`.
20
+ Use `README_ja.md`-style filenames with an underscore as the recommended form, matching this repository's convention. The plugin also accepts `README.en.md`, `README-en.md`, and configured BCP 47-style tags such as `README.en-US.md` and `README.zh-CN.md`.
21
21
 
22
22
  Directory detection is also supported:
23
23
 
@@ -89,3 +89,7 @@ l10n({
89
89
  Before the existing Content Graph is built, WikiLink graph targets are switched to the source note's language when that translation exists; otherwise their original target remains. No second graph is created. Normal Markdown links retain their authored destination.
90
90
 
91
91
  Each translated entry receives one `<link rel="alternate" hreflang="…">` per existing translation through Core's `headTags` extension point. The site shell remains responsible for rendering those tags and for selecting `<html lang>` for a request.
92
+
93
+ ## See also
94
+
95
+ - [Plugin guide](../../../docs/en/plugin-system.md)
package/README_ja.md CHANGED
@@ -14,7 +14,7 @@ l10n({ defaultLang: "ja", languages: ["ja", "en", "zh-CN"] });
14
14
 
15
15
  ## ロケール検出と翻訳グループ
16
16
 
17
- ファイル名は `README.en.md` を推奨します。`README-en.md`、`README_en.md`、`README.en-US.md`、`README.zh-CN.md` も利用できます。設定済みの言語名に一致する先頭ディレクトリ(`en/README.md`)も検出します。
17
+ ファイル名はこのリポジトリの慣例に合わせ、アンダースコアの `README_ja.md` 形式を推奨します。`README.ja.md`、`README-ja.md`、`README.en.md`、`README.en-US.md`、`README.zh-CN.md` も利用できます。設定済みの言語名に一致する先頭ディレクトリ(`en/README.md`)も検出します。
18
18
 
19
19
  frontmatter も利用できます。
20
20
 
@@ -70,3 +70,7 @@ l10n({
70
70
  ```
71
71
 
72
72
  独自検出の言語は frontmatter より弱く、ファイル名・ディレクトリより強く扱われます。`translationId` は明示的な翻訳グループ ID です。
73
+
74
+ ## ????
75
+
76
+ - [?????????](../../../docs/ja/plugin-system.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-l10n",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "yaml": "^2.9.0",
19
- "@riebeckite/core": "0.0.5"
19
+ "@riebeckite/core": "0.0.7"
20
20
  },
21
21
  "devDependencies": {
22
22
  "tsx": "^4.22.4"
package/style.css CHANGED
@@ -1,45 +1,45 @@
1
- .l10n-switcher {
2
- display: flex;
3
- flex-wrap: wrap;
4
- align-items: baseline;
5
- gap: 0.5rem 1rem;
6
- margin: 0.75rem 0 1.25rem;
7
- font-size: 0.8125rem;
8
- }
9
-
10
- .l10n-switcher__label {
11
- font-size: 0.6875rem;
12
- font-weight: 700;
13
- letter-spacing: 0.12em;
14
- color: var(
15
- --rb-color-muted,
16
- color-mix(in srgb, currentColor 48%, transparent)
17
- );
18
- text-transform: uppercase;
19
- }
20
-
21
- .l10n-switcher__list {
22
- display: flex;
23
- flex-wrap: wrap;
24
- gap: 0.75rem;
25
- margin: 0;
26
- padding: 0;
27
- list-style: none;
28
- }
29
-
30
- .l10n-switcher__link {
31
- color: inherit;
32
- text-decoration: none;
33
- text-underline-offset: 0.2em;
34
- }
35
-
36
- .l10n-switcher__link:hover,
37
- .l10n-switcher__link:focus-visible {
38
- color: var(--rb-color-accent, currentColor);
39
- text-decoration: underline;
40
- }
41
-
42
- .l10n-switcher__link[aria-current="page"] {
43
- font-weight: 700;
44
- text-decoration: underline;
45
- }
1
+ .l10n-switcher {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ align-items: baseline;
5
+ gap: 0.5rem 1rem;
6
+ margin: 0.75rem 0 1.25rem;
7
+ font-size: 0.8125rem;
8
+ }
9
+
10
+ .l10n-switcher__label {
11
+ font-size: 0.6875rem;
12
+ font-weight: 700;
13
+ letter-spacing: 0.12em;
14
+ color: var(
15
+ --rb-color-muted,
16
+ color-mix(in srgb, currentColor 48%, transparent)
17
+ );
18
+ text-transform: uppercase;
19
+ }
20
+
21
+ .l10n-switcher__list {
22
+ display: flex;
23
+ flex-wrap: wrap;
24
+ gap: 0.75rem;
25
+ margin: 0;
26
+ padding: 0;
27
+ list-style: none;
28
+ }
29
+
30
+ .l10n-switcher__link {
31
+ color: inherit;
32
+ text-decoration: none;
33
+ text-underline-offset: 0.2em;
34
+ }
35
+
36
+ .l10n-switcher__link:hover,
37
+ .l10n-switcher__link:focus-visible {
38
+ color: var(--rb-color-accent, currentColor);
39
+ text-decoration: underline;
40
+ }
41
+
42
+ .l10n-switcher__link[aria-current="page"] {
43
+ font-weight: 700;
44
+ text-decoration: underline;
45
+ }