manage-translations

Manage multilingual YAML translation files in the Project Graph locales directory.

4.4k|279|Updated Aug 23, 2024
One-click install
npx skills add https://github.com/graphif/project-graph --skill manage-translations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-translations
Source: https://github.com/graphif/project-graph/tree/main/.trae/skills/manage-translations
Command: npx skills add https://github.com/graphif/project-graph --skill manage-translations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adding or updating translations in the Project Graph project requires knowing where locale files live and which languages are already supported, and this Skill provides that structure so contributors avoid mistakes.

Core Features & Use Cases

  • Locate Translation Files: Identifies that all translations live in app/src/locales/ as YAML files such as en.yml, zh_CN.yml, and zh_TW.yml.
  • List Supported Languages: Shows how to run ls app/src/locales/*.yml to check which languages exist before adding or editing translations.
  • Use Case: A contributor wants to add a new UI string in Simplified Chinese; this Skill directs them to app/src/locales/zh_CN.yml and the translation system README.

Quick Start

Ask the assistant to show the supported languages and add a new translation key to the Chinese locale file in app/src/locales.

Frequently Asked Questions about manage-translations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new translation in Project Graph?

Add the new key to the appropriate YAML file under app/src/locales, such as zh_CN.yml for Simplified Chinese or en.yml for English. Check the locales README.md for the translation system conventions before editing.

Where are translation files stored in Project Graph?

All translation files are stored in the app/src/locales/ directory as YAML files. Each language has its own file, for example en.yml, id.yml, zh_CN.yml, zh_TW.yml, and zh_TWC.yml.

How do I check which languages Project Graph supports?

Run ls app/src/locales/*.yml in the repository root to list every locale file. Each .yml file corresponds to one supported language.

What format do Project Graph translation files use?

Translations use YAML format, with one .yml file per language in app/src/locales. The directory also contains a README.md explaining the translation system structure.

Does Project Graph support both Simplified and Traditional Chinese?

Yes, it includes zh_CN.yml for Simplified Chinese, zh_TW.yml for Traditional Chinese, and zh_TWC.yml for a colloquial Traditional Chinese variant, all located in app/src/locales.