スキル一覧に戻る
DTMC-marketplace

multilingual-localization

by DTMC-marketplace

geminihackathon

0🍴 6📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: multilingual-localization description: Translate documentation and instructions to EU languages while preserving formatting. Use when the user wants to translate, localize, or convert documents to another language, especially for EU AI Act Article 13 compliance (multilingual support documentation).

Multilingual Localization

Translate documents (Markdown, plain text, HTML, etc.) to EU languages while preserving formatting. Supports EU AI Act Article 13 compliance for multilingual documentation requirements.

Quick Start

python scripts/localize_document.py --file examples/sample_policy.md --lang "French"

Instructions

  1. Identify the document to translate and the target language.

  2. Run the translation script:

    python "AI Act skills packages/AI Act package/multilingual-localization/scripts/localize_document.py" \
      --file <path-to-document> \
      --lang "<target-language>"
    
  3. Verify the output: Check the project root Output/ directory for the translated file.

  4. Human review: Always recommend human review for technical accuracy and cultural appropriateness.

Documentation

See README.md for architecture details and fallback logic configuration.

Supported Formats

  • Markdown (.md, .markdown)
  • Plain text (.txt)
  • reStructuredText (.rst)
  • HTML (.html, .htm)
  • YAML (.yaml, .yml)
  • JSON (.json)
  • XML (.xml)

EU Languages Supported

Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Irish, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Slovak, Slovenian, Spanish, Swedish.

Examples

Translate README to German:

python scripts/localize_document.py --file examples/sample_policy.md --lang "German"
# Output: examples/sample_policy_German.md

Translate to French with custom output path:

python scripts/localize_document.py --file docs/guide.md --lang "French" --output docs/fr/guide.md

Translate multiple languages (batch):

for lang in French German Spanish Italian; do
  python scripts/localize_document.py --file examples/sample_policy.md --lang "$lang"
done

Requirements

  • Python 3.8+
  • google-genai package: pip install google-genai
  • GEMINI_API_KEY environment variable set

Best Practices

  • Always perform human review on translated documents, especially for regulatory content.
  • For legal or compliance documents, consult with native speakers or professional translators.
  • Keep original documents as source of truth; regenerate translations when source changes.

EU AI Act Compliance

This tool addresses:

  • Article 13: Transparency and provision of information to users
  • Accessibility: Making documentation available in EU languages
  • User Understanding: Ensuring users can understand AI system documentation in their language

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です