Skip to content

Commit 9e4f170

Browse files
committed
fix: migrate markdown translation changes
1 parent d4aeda2 commit 9e4f170

23 files changed

+212
-264
lines changed

adev-ja/src/content/ai/develop-with-ai.en.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ The Angular CLI includes an experimental [Model Context Protocol (MCP) server](h
3939
* <a href="/context/llm-files/llms-full.txt" target="_blank">llms-full.txt</a> - a more robust compiled set of resources describing how Angular works and how to build Angular applications.
4040

4141
Be sure [to check out the overview page](/ai) for more information on how to integrate AI into your Angular applications.
42+
43+
## Web Codegen Scorer
44+
The Angular team developed and open-sourced the [Web Codegen Scorer](https://github.com/angular/web-codegen-scorer), a tool to evaluate and score the quality of AI generated web code. You can use this tool to make evidence-based decisions relating to AI-generated code, such as fine-tuning prompts to improve the accuracy of LLM-generated code for Angular. These prompts can be included as system instructions for your AI tooling or as context with your prompt. You can also use this tool to compare the quality of code produced by different models and monitor quality over time as models and agents evolve.
45+

adev-ja/src/content/ai/develop-with-ai.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ Angular CLIには、開発環境のAIアシスタントがAngular CLIと連携
3939
* <a href="/context/llm-files/llms-full.txt" target="_blank">llms-full.txt</a> - Angularの動作方法とAngularアプリケーションの構築方法を記述した、より堅牢なコンパイル済みリソースセット。
4040

4141
AngularアプリケーションにAIを統合する方法に関する詳細情報については、[概要ページ](/ai)もご確認ください。
42+
43+
## Web Codegen Scorer
44+
Angularチームは[Web Codegen Scorer](https://github.com/angular/web-codegen-scorer)を開発し、オープンソース化しました。これは、AI生成ウェブコードの品質を評価・スコア化するためのツールです。このツールを使用して、Angular向けにLLM生成コードの精度を向上させるプロンプトの微調整など、AI生成コードに関するエビデンスベースの意思決定を行うことができます。これらのプロンプトは、AIツールのシステム指示として含めることも、プロンプトとともにコンテキストとして含めることもできます。また、このツールを使用して、異なるモデルが生成するコードの品質を比較したり、モデルやエージェントの進化に伴う品質の経時変化を監視したりすることもできます。

adev-ja/src/content/ai/overview.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Here is an example of how to build with Firebase AI Logic and Angular:
5454
This example includes an [in-depth video walkthrough explaining the functionality and demonstrates how to add new features](https://youtube.com/live/4vfDz2al_BI).
5555

5656
### Build AI-powered applications with Gemini API and Angular
57-
The [Gemini API](https://ai.google.dev/gemini-api/docs) provides access to state-of-the-art models from Google that supports audio, images, video, and text input. The models that are optimized for specific use cases, [learn more on the Gemini API documentation site](https://ai.google.dev/gemini-api/docs/models).
57+
The [Gemini API](https://ai.google.dev/gemini-api/docs) provides access to state-of-the-art models from Google that support audio, images, video, and text input. These models that are optimized for specific use cases, [learn more on the Gemini API documentation site](https://ai.google.dev/gemini-api/docs/models).
5858

5959
* [AI Text Editor Angular app template](https://github.com/FirebaseExtended/firebase-framework-tools/tree/main/starters/angular/ai-text-editor) - Use this template to start with a fully functioning text editor with AI-powered features like refining text, expanding text and formalizing text. This is a good starting point to gain experience with calling the Gemini API via HTTP.
6060

@@ -64,7 +64,7 @@ The [Gemini API](https://ai.google.dev/gemini-api/docs) provides access to state
6464
### Connecting to model providers and keeping your API Credentials Secure
6565
When connecting to model providers, it is important to keep your API secrets safe. *Never put your API key in a file that ships to the client, such as `environments.ts`*.
6666

67-
Your application's architecture determines which AI APIs and tools to choose. Specifically, choose based on whether or not your application is client-side or server-side. Tools such as Firebase AI Logic provide a secure connection to the model APIs for client-side code. If you want to use a different API than Firerbase AI Logic or prefer to use a different model provider, consider creating a proxy-server or even [Cloud Functions for Firebase](https://firebase.google.com/docs/functions) to serve as a proxy and not expose your API keys.
67+
Your application's architecture determines which AI APIs and tools to choose. Specifically, choose based on whether or not your application is client-side or server-side. Tools such as Firebase AI Logic provide a secure connection to the model APIs for client-side code. If you want to use a different API than Firebase AI Logic or prefer to use a different model provider, consider creating a proxy-server or even [Cloud Functions for Firebase](https://firebase.google.com/docs/functions) to serve as a proxy and not expose your API keys.
6868

6969
For an example of connecting using a client-side app, see the code: [Firebase AI Logic Angular example repository](https://github.com/angular/examples/tree/main/vertex-ai-firebase-angular-example).
7070

@@ -88,7 +88,7 @@ Because models can return non-deterministic results, your applications should be
8888
Even considering these strategies and techniques, sensible fallbacks should be incorporated in your application design. Follow existing standards of application resiliency. For example, it is not acceptable for an application to crash if a resource or API is not available. In that scenario, an error message is displayed to the user and, if applicable, options for next steps are also displayed. Building AI-powered applications requires the same consideration. Confirm that the response is aligned with the expected output and provide a "safe landing" in case it is not aligned by way of [graceful degradation](https://developer.mozilla.org/en-US/docs/Glossary/Graceful_degradation). This also applies to API outages for LLM providers.
8989

9090
Consider this example: The LLM provider is not responding. A potential strategy to handle the outage is:
91-
* Save the response from the user to used in a retry scenario (now or at a later time)
91+
* Save the response from the user to use in a retry scenario (now or at a later time)
9292
* Alert the user to the outage with an appropriate message that doesn't reveal sensitive information
9393
* Resume the conversation at a later time once the services are available again.
9494

adev-ja/src/content/ai/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Firebase AI LogicとAngularで構築する方法の例を次に示します。
5454
この例には、[機能の説明と新機能の追加方法を示す詳細なビデオウォークスルー](https://youtube.com/live/4vfDz2al_BI)が含まれています。
5555

5656
### Gemini APIとAngularでAI搭載アプリケーションを構築する {#build-ai-powered-applications-with-gemini-api-and-angular}
57-
[Gemini API](https://ai.google.dev/gemini-api/docs)は、音声、画像、動画、テキスト入力をサポートするGoogleの最先端モデルへのアクセスを提供します。特定のユースケースに最適化されたモデルについては[Gemini APIドキュメントサイトで詳細を確認してください](https://ai.google.dev/gemini-api/docs/models)
57+
[Gemini API](https://ai.google.dev/gemini-api/docs)は、音声、画像、動画、テキスト入力をサポートするGoogleの最先端モデルへのアクセスを提供します。特定のユースケースに最適化されたこれらのモデルについては[Gemini APIドキュメントサイトで詳細を確認してください](https://ai.google.dev/gemini-api/docs/models)
5858

5959
* [AIテキストエディターAngularアプリテンプレート](https://github.com/FirebaseExtended/firebase-framework-tools/tree/main/starters/angular/ai-text-editor) - このテンプレートを使用して、テキストの洗練、テキストの拡張、テキストの形式化などのAI搭載機能を備えた完全に機能するテキストエディターから始めましょう。これは、HTTP経由でのGemini API呼び出しの経験を積むのに良い出発点です。
6060

adev-ja/src/content/guide/components/styling.en.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ and [stylus](https://stylus-lang.com).
3636
## Style scoping
3737

3838
Every component has a **view encapsulation** setting that determines how the framework scopes a
39-
component's styles. There are four view encapsulation modes: `Emulated`, `ShadowDom`, `IsolatedShadowDom`, and `None`.
39+
component's styles. There are three view encapsulation modes: `Emulated`, `ShadowDom`, and `None`.
4040
You can specify the mode in the `@Component` decorator:
4141

4242
<docs-code language="angular-ts" highlight="[3]">
@@ -82,20 +82,16 @@ using [the web standard Shadow DOM API](https://developer.mozilla.org/docs/Web/W
8282
When enabling this mode, Angular attaches a shadow root to the component's host element and renders
8383
the component's template and styles into the corresponding shadow tree.
8484

85-
Styles inside the shadow tree cannot affect elements outside of that shadow tree.
85+
This mode strictly guarantees that _only_ that component's styles apply to elements in the
86+
component's template. Global styles cannot affect elements in a shadow tree and styles inside the
87+
shadow tree cannot affect elements outside of that shadow tree.
8688

8789
Enabling `ShadowDom` encapsulation, however, impacts more than style scoping. Rendering the
8890
component in a shadow tree affects event propagation, interaction
8991
with [the `<slot>` API](https://developer.mozilla.org/docs/Web/Web_Components/Using_templates_and_slots),
9092
and how browser developer tools show elements. Always understand the full implications of using
9193
Shadow DOM in your application before enabling this option.
9294

93-
### ViewEncapsulation.IsolatedShadowDom
94-
95-
Behaves as above, except this mode strictly guarantees that _only_ that component's styles apply to elements in the
96-
component's template. Global styles cannot affect elements in a shadow tree and styles inside the
97-
shadow tree cannot affect elements outside of that shadow tree.
98-
9995
### ViewEncapsulation.None
10096

10197
This mode disables all style encapsulation for the component. Any styles associated with the
@@ -118,4 +114,4 @@ use [the `<link>` element](https://developer.mozilla.org/docs/Web/HTML/Element/l
118114
reference CSS files. Additionally, your CSS may
119115
use [the `@import`at-rule](https://developer.mozilla.org/docs/Web/CSS/@import) to reference
120116
CSS files. Angular treats these references as _external_ styles. External styles are not affected by
121-
emulated view encapsulation.
117+
emulated view encapsulation.

adev-ja/src/content/guide/components/styling.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ CSSを出力するすべてのツールと連携します。
3636
## スタイルのスコープ
3737

3838
各コンポーネントには、**ビューカプセル化**設定があり、フレームワークがコンポーネントのスタイルをどのようにスコープするかを決定します。
39-
ビューカプセル化モードには、`Emulated``ShadowDom``IsolatedShadowDom``None`の4つのモードがあります
39+
ビューカプセル化モードには、`Emulated``ShadowDom``None`の3つのモードがあります
4040
モードは、`@Component`デコレーターで指定できます。
4141

4242
<docs-code language="angular-ts" highlight="[3]">
@@ -82,18 +82,14 @@ Angularのエミュレートされたカプセル化モードは、カスタム
8282
を使用して、コンポーネント内のスタイルをスコープします。
8383
このモードを有効にすると、Angularはコンポーネントのホスト要素にシャドウルートを添付し、コンポーネントのテンプレートとスタイルを対応するシャドウツリーにレンダリングします。
8484

85-
シャドウツリー内のスタイルはシャドウツリー外の要素に影響を与えることができません。
85+
このモードでは、*そのコンポーネントのスタイルのみ*がコンポーネントのテンプレート内の要素に適用されることが厳密に保証されます。グローバルスタイルはシャドウツリー内の要素に影響を与えることができず、シャドウツリー内のスタイルはシャドウツリー外の要素に影響を与えることができません。
8686

8787
ただし、`ShadowDom`カプセル化を有効にすると、スタイルのスコープ以外にも影響があります。
8888
シャドウツリーにコンポーネントをレンダリングすると、イベントの伝播、
8989
[`<slot>` API](https://developer.mozilla.org/docs/Web/Web_Components/Using_templates_and_slots)
9090
とのやり取り、ブラウザの開発者ツールによる要素の表示方法に影響を与えます。
9191
このオプションを有効にする前に、アプリケーションでShadow DOMを使用することのすべての影響を理解してください。
9292

93-
### ViewEncapsulation.IsolatedShadowDom
94-
95-
上記と同様に動作しますが、このモードでは、_コンポーネントのスタイルのみ_がコンポーネントのテンプレート内の要素に適用されることが厳密に保証されます。グローバルスタイルはシャドウツリー内の要素に影響を与えることができず、シャドウツリー内のスタイルはシャドウツリー外の要素に影響を与えることができません。
96-
9793
### ViewEncapsulation.None
9894

9995
このモードは、コンポーネントのすべてのスタイルカプセル化を無効にします。
@@ -116,4 +112,5 @@ Angularは、スタイル要素内のバインディングをサポートして
116112
を使用してCSSファイルを参照できます。さらに、CSSは
117113
[ `@import` at-rule](https://developer.mozilla.org/docs/Web/CSS/@import)
118114
を使用してCSSファイルを参照できます。
119-
Angularはこれらの参照を_外部_スタイルとして扱います。外部スタイルは、エミュレートされたビューカプセル化の影響を受けません。
115+
Angularはこれらの参照を*外部*スタイルとして扱います。外部スタイルは、エミュレートされたビューカプセル化の影響を受けません。
116+

0 commit comments

Comments
 (0)