Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/------------.md

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
---
name: 翻訳宣言
about: 未翻訳ドキュメントの翻訳を宣言するためのIssueです
title: "{ファイル名} の翻訳"
title: "translate: "
labels: 'type: Translation Checkout'
assignees: ''

---

<!--
⚠️ タイトル形式を変更しないでください
タイトルは必ず "translate: {ファイルパス}" の形式にしてください
例: translate: guide/animations/complex-sequences
-->

## 翻訳宣言

### 翻訳するファイル
Expand Down
6 changes: 3 additions & 3 deletions .github/scripts/sync-untranslated-issue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function generateLinks(filepath) {
.replace('src/content/', '')
.replace(/\.(md|ts|html|json)$/, '');

const issueUrl = `https://github.com/angular/angular-ja/issues/new?template=----.md&title=${encodeURIComponent(title + ' の翻訳')}`;
const issueUrl = `https://github.com/angular/angular-ja/issues/new?template=translation-checkout.md&title=${encodeURIComponent('translate: ' + title)}`;

// .mdファイルのみプレビューURL生成
let previewUrl = null;
Expand Down Expand Up @@ -226,11 +226,11 @@ export default async ({github, context, core, filesData}) => {
core.info(`Found ${checkoutIssues.length} Translation Checkout issues`);

// Issueタイトルからファイルパスを抽出してマップを作成
// タイトル形式: "{ファイルパス} の翻訳"
// タイトル形式: "translate: {ファイルパス}"
// 前方一致でマッチング(ディレクトリ名での宣言に対応)
const checkoutIssuesMap = new Map();
for (const issue of checkoutIssues) {
const match = issue.title.match(/^(.+)\s+の翻訳$/);
const match = issue.title.match(/^translate:\s*(.+)$/);
if (match) {
const declaredPath = `src/content/${match[1]}`;
// 各未翻訳ファイルに対して前方一致チェック
Expand Down