Skip to content

Commit 6163fb4

Browse files
authored
chore(i18n): sync main into translation/jp
2 parents 48d4180 + 8724774 commit 6163fb4

196 files changed

Lines changed: 1065 additions & 646 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/CI.yml‎

Lines changed: 64 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,86 @@ name: Validate Docs
66

77
on: [pull_request]
88

9+
# A new push supersedes the run before it.
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
env:
15+
NODE_VERSION: 24
16+
917
jobs:
10-
test:
11-
name: Test on ${{ matrix.os }}
12-
runs-on: ${{ matrix.os }}
13-
strategy:
14-
matrix:
15-
# Build processes work differently across operating systems, so the
16-
# checks run on each one to make sure anyone can contribute to the
17-
# docs.
18-
os: [windows-latest, macOS-latest]
18+
# Needs no dependencies, so it reports in seconds rather than queueing behind
19+
# npm ci and lint.
20+
admonitions:
21+
name: Check Admonitions
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
26+
with:
27+
# The check diffs against the pull request base, so it needs history.
28+
fetch-depth: 0
29+
- uses: ./.github/workflows/actions/check-admonitions
30+
31+
# These produce the same verdict on any operating system, so they run once.
32+
checks:
33+
name: Checks
34+
runs-on: ubuntu-latest
1935

2036
steps:
2137
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2238
- name: ⚙️ Use Node.js
2339
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
2440
with:
25-
node-version: 24
41+
node-version: ${{ env.NODE_VERSION }}
42+
cache: npm
2643
- name: 🕸️ Install Dependencies
2744
run: npm ci
28-
- name: 🖌️ Lint
29-
run: npm run lint
3045
- name: Test
3146
run: npm run test
3247
- name: 🧩 Typecheck
3348
run: npm run typecheck
3449
- name: 🔤 Spell Check
3550
run: npm run spellcheck
36-
- uses: ./.github/workflows/actions/check-admonitions
3751
- uses: ./.github/workflows/actions/check-translations
38-
# Lint and spell check changes should be pushed
39-
# to the branch before the branch is merge eligible.
40-
#
41-
# The translation keys check should not produce any changes.
52+
53+
cross-platform:
54+
name: Cross-platform on ${{ matrix.os }}
55+
runs-on: ${{ matrix.os }}
56+
strategy:
57+
matrix:
58+
# Prettier rewrites line endings, so Lint is the one check whose
59+
# verdict depends on the operating system.
60+
os: [windows-latest, macOS-latest]
61+
62+
steps:
63+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
64+
- name: ⚙️ Use Node.js
65+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
66+
with:
67+
node-version: ${{ env.NODE_VERSION }}
68+
cache: npm
69+
- name: 🕸️ Install Dependencies
70+
run: npm ci
71+
- name: 🖌️ Lint
72+
run: npm run lint
73+
# Lint changes should be pushed to the branch before the branch is merge
74+
# eligible.
4275
- name: 🔍 Check Diff
4376
run: git diff --exit-code
4477
shell: bash
78+
79+
verify:
80+
# The one required check on main and the feature branches, so the jobs
81+
# above can change without touching the protection rules. Renaming this
82+
# blocks merges until those rules are updated to match.
83+
name: Verify
84+
if: ${{ always() }}
85+
needs: [admonitions, checks, cross-platform]
86+
runs-on: ubuntu-latest
87+
88+
steps:
89+
- name: Check job status
90+
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
91+
run: exit 1

‎.github/workflows/actions/check-admonitions/action.yml‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,14 @@ runs:
1515
# Only the files the pull request touches are checked, so an existing
1616
# page is never anyone else's problem to fix.
1717
#
18-
# The event payload has no file list, so the changed files come from a
19-
# diff. The checkout is shallow and the base commit is fetched here
20-
# rather than through `fetch-depth` on the checkout, which would pull
21-
# the full history for every step in the job just to serve this one.
18+
# The caller has to check out with `fetch-depth: 0`, which a composite
19+
# action cannot require for itself.
2220
- name: 🔎 Check Admonitions
2321
shell: bash
2422
env:
2523
BASE_SHA: ${{ github.event.pull_request.base.sha }}
2624
CHANGED_FILES: ${{ runner.temp }}/changed-files.txt
2725
run: |
28-
git fetch --quiet --no-tags --depth=1 origin "$BASE_SHA"
2926
git diff --name-only --diff-filter=ACMR "$BASE_SHA" HEAD > "$CHANGED_FILES"
3027
node <<'JS'
3128
const { readFileSync } = require('fs');

‎docs/angular/add-to-existing.mdx‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import DocsCards from '@components/global/DocsCards';
1414
/>
1515
</head>
1616

17-
This guide covers how to add Ionic Angular to an existing Angular project. If you're looking to start a new project from scratch, check out the [Ionic Angular Quickstart](/docs/angular/quickstart.mdx) guide. For an overview of how Ionic Angular works with Angular, including version support and tooling, check out the [Ionic Angular Overview](/docs/angular/overview.mdx).
17+
This guide covers how to add Ionic Angular to an existing Angular project. If you're looking to start a new project from scratch, check out the [Ionic Angular Quickstart](/angular/quickstart.mdx) guide. For an overview of how Ionic Angular works with Angular, including version support and tooling, check out the [Ionic Angular Overview](/angular/overview.mdx).
1818

1919
:::tip
2020

@@ -76,7 +76,7 @@ Replace the existing `styles` array in `angular.json` with the following:
7676

7777
:::info
7878

79-
While `core.css` is required, `normalize.css`, `structure.css`, and `typography.css` are recommended but not required. They normalize cross-browser differences, ensure proper scrolling behavior, and provide consistent typography and form styling. Without them, you may need to handle these concerns yourself. For more details, refer to [Global Stylesheets](/docs/layout/global-stylesheets.mdx).
79+
While `core.css` is required, `normalize.css`, `structure.css`, and `typography.css` are recommended but not required. They normalize cross-browser differences, ensure proper scrolling behavior, and provide consistent typography and form styling. Without them, you may need to handle these concerns yourself. For more details, refer to [Global Stylesheets](/layout/global-stylesheets.mdx).
8080

8181
:::
8282

@@ -96,7 +96,7 @@ export const appConfig: ApplicationConfig = {
9696
};
9797
```
9898

99-
This reflects the Angular 21 and 22 scaffold, which is zoneless by default. If your existing app is on Angular 18 through 20, it still has `provideZoneChangeDetection({ eventCoalescing: true })`; keep that provider and add `provideIonicAngular({})` alongside it. Refer to [Zoneless Change Detection](/docs/angular/zoneless.mdx) for details.
99+
This reflects the Angular 21 and 22 scaffold, which is zoneless by default. If your existing app is on Angular 18 through 20, it still has `provideZoneChangeDetection({ eventCoalescing: true })`; keep that provider and add `provideIonicAngular({})` alongside it. Refer to [Zoneless Change Detection](/angular/zoneless.mdx) for details.
100100

101101
## Using Individual Components
102102

@@ -123,7 +123,7 @@ import { IonButton, IonDatetime } from '@ionic/angular';
123123
export class App {}
124124
```
125125

126-
Visit the [components](/docs/components.mdx) page for all of the available Ionic components.
126+
Visit the [components](/components.mdx) page for all of the available Ionic components.
127127

128128
## Using Ionic Pages
129129

@@ -172,7 +172,7 @@ Replace the existing `styles` array in `angular.json` with the following:
172172
]
173173
```
174174

175-
These stylesheets set up the overall page structure and provide [CSS utilities](/docs/layout/css-utilities.mdx) for faster development. Some stylesheets are optional. For details on which stylesheets are required, check out [Global Stylesheets](/docs/layout/global-stylesheets.mdx).
175+
These stylesheets set up the overall page structure and provide [CSS utilities](/layout/css-utilities.mdx) for faster development. Some stylesheets are optional. For details on which stylesheets are required, check out [Global Stylesheets](/layout/global-stylesheets.mdx).
176176

177177
#### 2. Set up Theming
178178

@@ -191,7 +191,7 @@ Create a `src/theme/variables.css` file with the following content:
191191
@import '@ionic/angular/css/palettes/dark.system.css';
192192
```
193193

194-
This file enables [dark mode support](/docs/theming/dark-mode.mdx) for your Ionic app when the system is set to prefer a dark appearance. You can customize the theming behavior by uncommenting different dark palette imports or adding custom CSS variables.
194+
This file enables [dark mode support](/theming/dark-mode.mdx) for your Ionic app when the system is set to prefer a dark appearance. You can customize the theming behavior by uncommenting different dark palette imports or adding custom CSS variables.
195195

196196
#### 3. Update the App Component
197197

@@ -326,11 +326,11 @@ Now that you have Ionic Angular integrated into your project, check out:
326326
<p>Discover how to handle routing and navigation in Ionic Angular apps using the Angular Router.</p>
327327
</DocsCard>
328328

329-
<DocsCard header="Components" href="/docs/components" icon="/icons/guide-components-icon.png">
329+
<DocsCard header="Components" href="/components" icon="/icons/guide-components-icon.png">
330330
<p>Explore Ionic's rich library of UI components for building beautiful apps.</p>
331331
</DocsCard>
332332

333-
<DocsCard header="Theming" href="/docs/theming/basics" icon="/icons/guide-theming-icon.png">
333+
<DocsCard header="Theming" href="/theming/basics" icon="/icons/guide-theming-icon.png">
334334
<p>Learn how to customize the look and feel of your app with Ionic's powerful theming system.</p>
335335
</DocsCard>
336336

‎docs/angular/lifecycle.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If your pages keep state in plain fields rather than signals, the component host
3232

3333
On **Angular 18 through 21** this only affects you if you set `OnPush` on those components yourself, because a component that does not declare a strategy is eager.
3434

35-
**Angular 22** makes `OnPush` the default for components that do not declare one, so refer to [Change detection on Angular 22](/docs/angular/zoneless.mdx#change-detection-on-angular-22) for what your app shell has to declare.
35+
**Angular 22** makes `OnPush` the default for components that do not declare one, so refer to [Change detection on Angular 22](/angular/zoneless.mdx#change-detection-on-angular-22) for what your app shell has to declare.
3636

3737
:::
3838

‎docs/angular/navigation.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ The application history in this example has the following path:
227227

228228
`Accessibility` --> `VoiceOver` --> `Speech`
229229

230-
When we press the back button, we follow that same routing path except in reverse. Linear routing is helpful in that it allows for simple and predictable routing behaviors. It also means we can use router Angular Router APIs such as [LocationStrategy.historyGo()](#navigating-using-locationstrategy).
230+
When we press the back button, we follow that same routing path except in reverse. Linear routing is helpful in that it allows for simple and predictable routing behaviors. It also means we can use router Angular Router APIs such as [LocationStrategy.historyGo()](#navigating-using-locationstrategyhistorygo).
231231

232232
The downside of linear routing is that it does not allow for complex user experiences such as tab views. This is where non-linear routing comes into play.
233233

‎docs/angular/your-first-app/2-taking-photos.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sidebar_label: カメラ撮影
1111
/>
1212
</head>
1313

14-
Now for the fun part - adding the ability to take photos with the device’s camera using the Capacitor [Camera API](../../native/camera.mdx). We’ll begin with building it for the web, then make some small tweaks to make it work on mobile (iOS and Android).
14+
Now for the fun part - adding the ability to take photos with the device’s camera using the Capacitor [Camera API](/native/camera.mdx). We’ll begin with building it for the web, then make some small tweaks to make it work on mobile (iOS and Android).
1515

1616
## Photo Service
1717

‎docs/angular/your-first-app/3-saving-photos.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export interface UserPhoto {
8686
}
8787
```
8888

89-
We'll use the Capacitor [Filesystem API](../../native/filesystem.mdx) to save the photo. First, convert the photo to base64 format.
89+
We'll use the Capacitor [Filesystem API](/native/filesystem.mdx) to save the photo. First, convert the photo to base64 format.
9090

9191
Then, pass the data to the Filesystem's `writeFile` method. Recall that we display photos by setting the image's source path (`src`) to the `webviewPath` property. So, set the `webviewPath` and return the new `Photo` object.
9292

‎docs/angular/your-first-app/4-loading-photos.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ sidebar_label: 写真の読み込み
1313

1414
We’ve implemented photo taking and saving to the filesystem. There’s one last piece of functionality missing: the photos are stored in the filesystem, but we need a way to save pointers to each file so that they can be displayed again in the photo gallery.
1515

16-
Fortunately, this is easy: we’ll leverage the Capacitor [Preferences API](../../native/preferences.mdx) to store our array of Photos in a key-value store.
16+
Fortunately, this is easy: we’ll leverage the Capacitor [Preferences API](/native/preferences.mdx) to store our array of Photos in a key-value store.
1717

1818
## Preferences API
1919

‎docs/angular/zoneless.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You do not need to change these. Angular schedules change detection for them in
2828

2929
:::note[Angular 22]
3030

31-
Angular 22 also makes `OnPush` the default change detection strategy. Under `OnPush`, synchronous state set as a plain field (including in the lifecycle hooks above) no longer re-renders on its own, even though Ionic notifies Angular. Signals still update the view. Refer to [Change detection on Angular 22](#change-detection-on-angular-22) for what this means for your app shell, and to the [OnPush Change Detection section of the Ionic 9 upgrade guide](/docs/updating/9-0.mdx#onpush-change-detection-on-angular-22) for the migration steps.
31+
Angular 22 also makes `OnPush` the default change detection strategy. Under `OnPush`, synchronous state set as a plain field (including in the lifecycle hooks above) no longer re-renders on its own, even though Ionic notifies Angular. Signals still update the view. Refer to [Change detection on Angular 22](#change-detection-on-angular-22) for what this means for your app shell, and to the [OnPush Change Detection section of the Ionic 9 upgrade guide](/updating/9-0.mdx#onpush-change-detection-on-angular-22) for the migration steps.
3232

3333
:::
3434

@@ -174,4 +174,4 @@ Hosting an `ion-nav` is fine either way, because its pages are attached as root
174174

175175
## Staying on Zone.js
176176

177-
If you are not ready to adopt zoneless change detection, you can opt back into Zone.js with `provideZoneChangeDetection()`. Refer to the [Keeping Zone.js section of the Ionic 9 upgrade guide](/docs/updating/9-0.mdx#keeping-zonejs) for the exact configuration.
177+
If you are not ready to adopt zoneless change detection, you can opt back into Zone.js with `provideZoneChangeDetection()`. Refer to the [Keeping Zone.js section of the Ionic 9 upgrade guide](/updating/9-0.mdx#keeping-zonejs) for the exact configuration.

‎docs/api/input-password-toggle.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The InputPasswordToggle component is a companion component to [Input](./input).
2727

2828
:::info
2929

30-
InputPasswordToggle must be used with an [Input](./input) that has its [`type`](./input/#type) property set to either `'text'` or `'password'`.
30+
InputPasswordToggle must be used with an [Input](./input) that has its [`type`](./input.mdx#prop-type) property set to either `'text'` or `'password'`.
3131

3232
Using any other `type` will cause a warning to be logged.
3333

0 commit comments

Comments
 (0)