Skip to content

Commit af40cf8

Browse files
authored
fix: translate cookie-popup (#972)
1 parent f79dca8 commit af40cf8

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@if (!hasAccepted()) {
2+
<div class="docs-cookies-popup docs-invert-mode">
3+
<p>This site uses cookies from Google to deliver its services and to analyze traffic.</p>
4+
5+
<div>
6+
<a href="https://policies.google.com/technologies/cookies" target="_blank" rel="noopener">
7+
<button class="docs-primary-btn" [attr.text]="'Learn more'" aria-label="Learn More">
8+
Learn more
9+
</button>
10+
</a>
11+
<button
12+
type="button"
13+
(click)="accept()"
14+
class="docs-primary-btn"
15+
[attr.text]="'Ok, Got it'"
16+
aria-label="Ok, Got it"
17+
>
18+
Ok, Got it
19+
</button>
20+
</div>
21+
</div>
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@if (!hasAccepted()) {
2+
<div class="docs-cookies-popup docs-invert-mode">
3+
<p>このサイトでは、サービスの提供とトラフィックの分析のためにGoogleのクッキーを使用しています。</p>
4+
5+
<div>
6+
<a href="https://policies.google.com/technologies/cookies" target="_blank" rel="noopener">
7+
<button class="docs-primary-btn" [attr.text]="'詳細を見る'" aria-label="詳細を見る">
8+
詳細を見る
9+
</button>
10+
</a>
11+
<button
12+
type="button"
13+
(click)="accept()"
14+
class="docs-primary-btn"
15+
[attr.text]="'了解しました'"
16+
aria-label="了解しました"
17+
>
18+
了解しました
19+
</button>
20+
</div>
21+
</div>
22+
}

tools/update-origin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const localizedFilePatterns = [
1515
// Application files
1616
'src/app/sub-navigation-data.ts',
1717
'shared-docs/components/table-of-contents/table-of-contents.component.html',
18+
'shared-docs/components/cookie-popup/cookie-popup.component.html'
1819
];
1920

2021
async function main() {

0 commit comments

Comments
 (0)