Skip to content

Commit e67c851

Browse files
committed
fix: localize home
1 parent f9fe2ab commit e67c851

6 files changed

Lines changed: 966 additions & 81 deletions

File tree

‎adev-ja/src/app/features/home/home.component.en.html‎

Lines changed: 477 additions & 0 deletions
Large diffs are not rendered by default.

‎adev-ja/src/app/features/home/home.component.html‎

Lines changed: 477 additions & 0 deletions
Large diffs are not rendered by default.

‎tools/adev-patches/add-global-styles.patch‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
diff --git a/adev/src/local-styles.scss b/adev/src/local-styles.scss
2-
index 2c83a2ad4a..9d9b28112a 100644
2+
index f3c266a1e2..bac1fb9f9b 100644
33
--- a/adev/src/local-styles.scss
44
+++ b/adev/src/local-styles.scss
5-
@@ -1,3 +1,17 @@
6-
@use './styles/xterm';
7-
8-
@include xterm.xterm();
5+
@@ -5,3 +5,17 @@
6+
@tailwind base;
7+
@tailwind components;
8+
@tailwind utilities;
9+
+
910
+// adev-ja overrides
1011
+
11-
+.docs-viewer {
12+
+.docs-viewer, .docs-app-main-content {
1213
+ // `balance` is not good for Japanese headings.
1314
+ h1,
1415
+ h2,
@@ -19,8 +20,7 @@ index 2c83a2ad4a..9d9b28112a 100644
1920
+ word-break: auto-phrase;
2021
+ }
2122
+}
22-
+
23-
\ No newline at end of file
23+
2424
diff --git a/adev/shared-docs/styles/_typography.scss b/adev/shared-docs/styles/_typography.scss
2525
index 1c4e2ce0e7..8e897e21f9 100644
2626
--- a/adev/shared-docs/styles/_typography.scss

‎tools/adev-patches/localize-home.patch‎

Lines changed: 0 additions & 71 deletions
This file was deleted.

‎tools/lib/adev.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ const $$ = $({
1212
export async function buildAdev() {
1313
const sh = $$({ cwd: buildDir });
1414
await sh`pnpm install --frozen-lockfile`;
15-
await sh`pnpm bazel build //adev:build --full_build_adev --config=release`;
15+
await sh`pnpm bazel build //adev:build.production`;
1616
}
1717

1818
export function serveAdev() {
1919
const sh = $$({ cwd: buildDir, reject: false });
20-
const p = sh`pnpm ibazel run //adev:serve`;
20+
const p = sh`pnpm ibazel run //adev:build.serve`;
2121
const pid = p.pid!;
2222
consola.log(`adev process started: ${pid}`);
2323
const abort = () => process.kill(pid!);

‎tools/update-origin.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const localizedFilePatterns = [
1212
'!src/content/**/license.md',
1313
// Tutorial config files
1414
'src/content/tutorials/**/config.json',
15+
// Update home files
16+
'src/app/features/home/home.component.html',
1517
// Update guide files
1618
'src/app/features/update/recommendations.ts',
1719
'src/app/features/update/update.component.ts',

0 commit comments

Comments
 (0)