translation-management
Integration with translation management systems and i18n workflows. Connect with Crowdin, Transifex, Weblate, manage translation memory, synchronize glossaries, and automate localization pipelines.
What this skill does
# Translation Management Skill
Integration with translation management systems and i18n workflows.
## Capabilities
- Crowdin API integration (upload, download, status)
- Transifex API integration
- Weblate integration
- Translation memory management
- Glossary synchronization
- Pseudo-localization generation
- String extraction from documentation
- Locale file management (JSON, XLIFF, PO)
## Usage
Invoke this skill when you need to:
- Set up translation workflows
- Sync content with TMS platforms
- Manage translation memory
- Generate pseudo-localizations
- Extract translatable strings
## Inputs
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| platform | string | Yes | crowdin, transifex, weblate |
| action | string | Yes | upload, download, status, sync-glossary |
| sourcePath | string | No | Path to source content |
| targetLocales | array | No | Target locales for translation |
| projectId | string | No | Project identifier on platform |
| apiKey | string | No | Platform API key (from env) |
### Input Example
```json
{
"platform": "crowdin",
"action": "upload",
"sourcePath": "./docs/en",
"targetLocales": ["es", "fr", "de", "ja"],
"projectId": "my-docs"
}
```
## Crowdin Integration
### crowdin.yml Configuration
```yaml
project_id: 123456
api_token_env: CROWDIN_TOKEN
preserve_hierarchy: true
base_path: docs
files:
- source: /en/**/*.md
translation: /%locale%/**/%original_file_name%
update_option: update_as_unapproved
skip_untranslated_strings: true
export_quotes: double
- source: /en/**/*.json
translation: /%locale%/**/%original_file_name%
type: json
bundles:
- name: Documentation
patterns:
- "**/*.md"
labels:
- docs
languages_mapping:
locale:
pt-BR: pt_BR
zh-CN: zh_Hans
zh-TW: zh_Hant
```
### Crowdin CLI Commands
```bash
# Install CLI
npm install -g @crowdin/cli
# Upload sources
crowdin upload sources
# Download translations
crowdin download
# Check translation status
crowdin status
# Pre-translate with TM
crowdin pre-translate --method tm
# Upload glossary
crowdin glossary upload ./glossary.csv
```
### Crowdin API Integration
```javascript
const crowdin = require('@crowdin/crowdin-api-client');
const { projectsGroupsApi, sourceFilesApi, translationsApi } = new crowdin.default({
token: process.env.CROWDIN_TOKEN
});
// Upload source file
async function uploadSource(projectId, filePath, content) {
const storage = await crowdin.uploadStorage(content, path.basename(filePath));
await sourceFilesApi.createFile(projectId, {
storageId: storage.data.id,
name: path.basename(filePath),
directoryId: await getDirectoryId(filePath)
});
}
// Download translations
async function downloadTranslations(projectId, locale) {
const build = await translationsApi.buildProject(projectId, {
targetLanguageIds: [locale]
});
// Wait for build
let status;
do {
await sleep(1000);
status = await translationsApi.checkBuildStatus(projectId, build.data.id);
} while (status.data.status === 'inProgress');
const download = await translationsApi.downloadBuild(projectId, build.data.id);
return download.data.url;
}
// Get translation progress
async function getProgress(projectId) {
const progress = await translationsApi.getProjectProgress(projectId);
return progress.data.map(lang => ({
locale: lang.data.languageId,
translated: lang.data.translationProgress,
approved: lang.data.approvalProgress
}));
}
```
## Transifex Integration
### .tx/config
```ini
[main]
host = https://www.transifex.com
[o:myorg:p:mydocs:r:documentation]
file_filter = docs/<lang>/**/*.md
source_file = docs/en/**/*.md
source_lang = en
type = GITHUBMARKDOWN
[o:myorg:p:mydocs:r:ui-strings]
file_filter = locales/<lang>.json
source_file = locales/en.json
source_lang = en
type = KEYVALUEJSON
```
### Transifex CLI
```bash
# Install CLI
pip install transifex-client
# Push source files
tx push -s
# Pull translations
tx pull -a
# Pull specific language
tx pull -l es
# Check status
tx status
```
## Weblate Integration
### weblate.yml
```yaml
project: my-docs
component: documentation
format: markdown
source_language: en
files:
- filemask: docs/*/index.md
file_format: md
template: docs/en/index.md
translation_memory: true
machine_translation:
- service: deepl
key_env: DEEPL_KEY
quality_checks:
- placeholders
- urls
- xml_tags
```
### Weblate API
```python
import wlc
client = wlc.Weblate(
url='https://weblate.example.com/api/',
key=os.environ['WEBLATE_KEY']
)
# Get translation status
project = client.get_project('my-docs')
for component in project.components():
for translation in component.translations():
print(f"{translation.language}: {translation.translated_percent}%")
# Trigger translation memory rebuild
component = client.get_component('my-docs/documentation')
component.rebuild_translation_memory()
```
## Translation Memory
### TM Management
```javascript
class TranslationMemory {
constructor(storage) {
this.storage = storage;
}
// Add translation to memory
async add(source, target, locale, metadata = {}) {
const entry = {
source,
target,
locale,
timestamp: Date.now(),
...metadata
};
const hash = this.hash(source);
await this.storage.set(`tm:${locale}:${hash}`, entry);
}
// Find matches
async findMatches(source, locale, minScore = 0.7) {
const entries = await this.storage.getByPrefix(`tm:${locale}:`);
const matches = [];
for (const entry of entries) {
const score = this.calculateSimilarity(source, entry.source);
if (score >= minScore) {
matches.push({
...entry,
score,
matchType: score === 1 ? 'exact' : 'fuzzy'
});
}
}
return matches.sort((a, b) => b.score - a.score);
}
// Import from TMX
async importTMX(tmxContent) {
const parser = new TMXParser();
const entries = await parser.parse(tmxContent);
for (const entry of entries) {
await this.add(entry.source, entry.target, entry.locale, {
importedFrom: 'tmx'
});
}
}
// Export to TMX
async exportTMX(locale) {
const entries = await this.storage.getByPrefix(`tm:${locale}:`);
return this.generateTMX(entries);
}
}
```
## Glossary Management
### Glossary Format
```csv
term,definition,context,do_not_translate
API,Application Programming Interface,Technical term,false
SDK,Software Development Kit,Technical term,false
OAuth,Open Authorization,Authentication protocol,true
```
### Glossary Sync
```javascript
async function syncGlossary(platform, glossaryPath) {
const glossary = await parseGlossary(glossaryPath);
switch (platform) {
case 'crowdin':
await crowdin.glossary.upload(glossary);
break;
case 'transifex':
await transifex.glossary.sync(glossary);
break;
}
return {
terms: glossary.length,
synced: true
};
}
function parseGlossary(path) {
const content = fs.readFileSync(path, 'utf8');
const rows = csvParse(content, { columns: true });
return rows.map(row => ({
term: row.term,
definition: row.definition,
context: row.context,
doNotTranslate: row.do_not_translate === 'true'
}));
}
```
## Pseudo-Localization
### Generate Pseudo-Locale
```javascript
function pseudoLocalize(text, options = {}) {
const {
expansion: expansionFactor = 1.3,
accents: useAccents = true,
brackets: useBrackets = true
} = options;
// Character mapping for accented characters
const accentMap = {
'a': 'ä', 'e': 'ë', 'i': 'ï', 'o': 'ö', 'u': 'ü',
'A': 'Ä', 'E': 'Ë', 'I': 'Ï', 'O': 'Ö', 'U': 'Ü',
'c': 'ç', 'n': 'ñ'
};
let result = text;
// Apply accents
if (useAccents) {
result = result.split('').map(char =>
accentMap[char] || char
).join('');
}
// Simulate text expansion
const expansioRelated in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.