← スキル一覧に戻る

translate
by vide
Native Android app for viewing Tesla vehicle data from your self-hosted Teslamate instance
⭐ 32🍴 3📅 2026年1月23日
SKILL.md
name: translate description: Add a new translatable string to all locale files (English, Italian, Spanish, Catalan). Use when adding user-visible text to the app. allowed-tools: Read, Edit
Translate Skill
Add a new string resource to all 4 locale files.
String Resource Files
| Locale | File |
|---|---|
| English | app/src/main/res/values/strings.xml |
| Italian | app/src/main/res/values-it/strings.xml |
| Spanish | app/src/main/res/values-es/strings.xml |
| Catalan | app/src/main/res/values-ca/strings.xml |
Process
-
Ask the user for:
- The string name (use
snake_case, e.g.,drive_details_title) - The English text
- Context for translators (optional but recommended)
- The string name (use
-
Generate translations for Italian, Spanish, and Catalan
-
Add to all 4 files with an XML comment for context:
<!-- Context: Shown as the title of the drive details screen --> <string name="drive_details_title">Drive Details</string>
Guidelines
- Use
snake_casefor string names (e.g.,settings_title,drive_history) - Add XML comments above strings to provide context for translators
- Technical terms like AC, DC, kW, kWh should NOT be translated
- Format specifiers (
%s,%d,%1$s) must be preserved in translations - Keep translations natural - don't be overly literal
String with Parameters
For strings with parameters, use positional format specifiers:
<string name="distance_km">%1$d km away</string>
In Kotlin:
stringResource(R.string.distance_km, distance)
Plurals
For quantity strings, use plurals:
<plurals name="days_count">
<item quantity="one">%d day</item>
<item quantity="other">%d days</item>
</plurals>
After Adding Strings
Remind the user to use stringResource(R.string.xxx) in Compose code:
Text(stringResource(R.string.drive_details_title))
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です