Skip to content
Back to skills

I18n Translations

ASecurity

Use when adding user-facing text to Handsontable, creating new language constants, updating translation files, or working with RTL layouts and internationalization

  • 22,083 stars
  • 0 votes
  • 1 copy
  • 2 views
  • Added September 19, 2026
development

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add handsontable/handsontable --skill i18n-translations --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of I18n Translations?

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

Security grade badge for I18n Translations
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/handsontable-i18n-translations/badge)](https://www.skillsdirectory.com/skills/handsontable-i18n-translations)

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: i18n-translations
path: handsontable/src/i18n/**
description: Use when adding user-facing text to Handsontable, creating new language constants, updating translation files, or working with RTL layouts and internationalization
---

# Internationalization and Translations

Route all user-visible strings through the i18n system in `src/i18n/`.

## Adding a language constant

1. Define it in `src/i18n/constants.ts` in `UPPER_SNAKE_CASE`, built from a namespace prefix and key:

```js
export const CONTEXTMENU_ITEMS_ROW_ABOVE = `${CM_ALIAS}.insertRowAbove`;
```

2. Add the phrase to every language file in `src/i18n/languages/` (20+ locales, e.g. `en-US.ts`, `de-DE.ts`), translated: a phrase a file lacks falls back to English, so a translated grid reads it in another language (WCAG 3.1.2). `src/i18n/__tests__/languageCompleteness.unit.ts` fails on a file that lacks a phrase `en-US` holds, holds an empty one, or uses a placeholder the English phrase does not have. Each file imports constants as `* as C`:

```js
[C.CONTEXTMENU_ITEMS_ROW_ABOVE]: 'Insert row above',
```

Pluralizable strings use an array: `['Remove row', 'Remove rows']`.

3. A new language file also needs the barrel export in `src/i18n/languages/index.ts`.

## Consuming translations

```js
import * as C from '../../i18n/constants';

const label = this.hot.getTranslatedPhrase(C.CONTEXTMENU_ITEMS_ROW_ABOVE);
```

## RTL

`layoutDirection: 'rtl'`. Use logical CSS properties (`inset-inline-start` in place of `left`). Test with `ar-AR` or `fa-IR`.

## IME

Editors handle `compositionstart`, `compositionupdate`, `compositionend` for CJK input; leave composition state untouched when changing editor behavior.

## Locale-aware casing

Lowercase cell data with `localeLowerCase(value, locale)` from `src/helpers/string.ts`, in place of `String.prototype.toLocaleLowerCase` (ESLint `no-restricted-syntax` enforces it). It keeps Turkish/Azeri/Lithuanian special casing, takes the fast `toLowerCase()` path elsewhere, and does not throw on an invalid `locale` tag.

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.

View all in development →

Comments

Loading comments…

Newsletter

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