adding-localizable-strings

Add human-readable strings to English properties files and trigger automated translations.

13|1|Updated Dec 22, 2020
One-click install
npx skills add https://github.com/terraware/terraware-server --skill adding-localizable-strings
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adding-localizable-strings
Source: https://github.com/terraware/terraware-server/tree/main/.claude/skills/adding-localizable-strings
Command: npx skills add https://github.com/terraware/terraware-server --skill adding-localizable-strings

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of internationalizing software by providing a structured process for adding new human-readable strings that can be translated into multiple languages.

Core Features & Use Cases

  • String Addition: Guides users on how to correctly add new strings to the English properties file.
  • Automated Translation Trigger: Explains how to use the yarn translate command to update translations for other languages.
  • Test Suite Execution: Emphasizes the importance of running the test suite to validate string changes.
  • Use Case: A developer needs to add a new error message to the application. This Skill ensures the message is properly formatted in English and then automatically translated for all supported languages.

Quick Start

Add the new string to the English strings file and run yarn translate.

Frequently Asked Questions about adding-localizable-strings

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

FAQPage Schema
How do I add new translatable strings to my application's internationalization files?

To add translatable strings, insert the new human-readable text into the English properties file and run `yarn translate` to trigger automated translations for all other supported languages.

What is the best way to format internationalization strings for Java's MessageFormat?

Internationalization strings must be correctly formatted for Java's MessageFormat to ensure proper variable substitution. Add the formatted message to the English resource file before triggering translation.

How do I automate translation for multiple languages after updating my English strings file?

You can automate translation for multiple languages by running the `yarn translate` command after updating the English resource file, which triggers automated translations for all other supported languages.

Do I need to run the test suite after adding new localization strings to my application?

Yes, you need to run the test suite after adding localization strings to validate the changes. This ensures the newly added strings are correctly formatted and do not break existing internationalization functionality.

Why does my automated translation process fail when adding new i18n strings?

Automated translation may fail if strings are not correctly formatted for Java's MessageFormat. Ensure the English resource file is properly updated and validated by the test suite before running `yarn translate`.

Can I use this localization process for adding error messages to my application?

Yes, this localization process is designed for adding new error messages. It ensures the message is properly formatted in the English properties file and then automatically translated for all supported languages.