Skip to content
Back to skills

Excel Translation

ASecurity

Excel Translation Skill

  • 666 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added February 8, 2026
toolspythongobashgit

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill excel-translation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Excel Translation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Excel Translation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-excel-translation/badge)](https://www.skillsdirectory.com/skills/majiayu000-excel-translation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: excel-translation
version: "1.0.0"
category: data
description: "Excel Translation Skill"
---

# Excel Translation Skill

> Version: 1.0.0
> Category: Data Engineering
> Triggers: Translate Excel calculation files, Spanish to English conversion
> Tools: `scripts/python/translate_excel.py`

## Overview

This skill provides the capability to batch translate engineering calculation Excel files from Spanish to English. It uses a specialized dictionary of engineering terms and preserves the original file structure, formulas, and formatting.

## Capabilities

- **Batch Processing**: Translates all `.xlsx` files in a target directory.
- **Structure Preservation**: Maintains sheet names, cell locations, and formulas.
- **Engineering Vocabulary**: Uses a curated dictionary for accurate technical translation.
- **Safety**: Uses regex-based word boundary detection to prevent partial word replacement errors (e.g., preventing "DE" replacement inside "MODEL").

## Usage

### Command
```bash
python3 scripts/python/translate_excel.py
```

### Configuration
The script is currently configured to target:
`/mnt/github/workspace-hub/doris/62092_sesa/data/calculations`

To change the target, modify the `target_dir` variable in the `main()` function of the script.

### Dictionary
The translation dictionary is embedded in the script. To add new terms, update the `replacements` dictionary in `scripts/python/translate_excel.py`.

## Technical Details

- **Dependencies**: `openpyxl`
- **Logic**:
  1. Iterates through all `.xlsx` files in the target directory (skipping `*_en.xlsx`).
  2. Loads workbook using `openpyxl`.
  3. Translates sheet names (truncating to 31 chars if necessary).
  4. Iterates through all cells with string values.
  5. Applies regex-based replacement for short words and phrase-based replacement for longer terms.
  6. Saves the translated file with `_en.xlsx` suffix.

## Verification

After running the translation, verify the output files (ending in `_en.xlsx`) to ensure:
- Sheet names are legible and correct.
- Technical terms are translated correctly.
- No formula corruption occurred.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.