AIPM
Theme

AIPM package

Yoruba Localization Testing

@affaan-m/yoruba-localization-testing@1.0.0

Test Yoruba (yo) and English bilingual interfaces for tone marks, underdots, Unicode normalization, translation fallback, and accessibility.

Scanned · no issues · Nov 18, 2026

GitHub stars: ★ 306K

LinkedInPost

Install Skill

Pins this version in aipm.package.json and aipm-lock.json.

aipm add @affaan-m/yoruba-localization-testing@1.0.0

Without project tracking

Writes the skill files only. Add --no-init to skip aipm.package.json and the lockfile.

aipm add @affaan-m/yoruba-localization-testing@1.0.0 --no-init

How to use

Install the skill above, then run this in your AI tool:

/yoruba-localization-testing <your description>

About

Use this skill when implementing or reviewing **Yoruba–English** interfaces. It targets correctness of Yoruba typography, message handling, and user experience, rather than providing automatically approved translations. It complements `i18n-sync` (message parity) and `accessibility` (assistive technology support).

Source

What gets added to your project

Preview every file this package writes on install before you run the command above.

Summary

Test Yoruba (yo) and English bilingual interfaces for tone marks, underdots, Unicode normalization, translation fallback, and accessibility.

Skill instructions

Yoruba Localization Testing

Use this skill when implementing or reviewing Yoruba–English interfaces. It targets correctness of Yoruba typography, message handling, and user experience, rather than providing automatically approved translations. It complements i18n-sync (message parity) and accessibility (assistive technology support).

When to Activate

  • Building web or mobile interfaces with yo or en locale options.
  • Fixing misplaced, removed, or corrupted Yoruba diacritics in text, input, search, storage, or exports.
  • Reviewing English fallbacks, language selection, localization regression tests, and screen-reader language metadata.
  • Evaluating an AI-generated Yoruba translation before it is released to users.

Core Concepts

  • Yoruba includes distinct letters ẹ, ọ, ṣ and tone-marked vowels such as á, à, ẹ́, and ọ̀. Tone and underdot differences can change meaning.
  • Store and transmit text in UTF-8. Normalize to NFC for canonical comparisons or consistent storage, but do not strip tones or underdots from the visible text.
  • Prefer BCP 47 language tags yo and en. Set the screen-reader language for Yoruba text (for example, lang="yo" on web content), and verify the assistive technology's actual language support.
  • Do not replace human review with machine translation. Require fluent Yoruba review for meaning, naturalness, tone, terminology, and dialect-sensitive content.
  • A missing translation may fall back visibly to English. Never silently fabricate strings for legal, medical, safety, or financial content.
  • Placeholders and message keys are code contracts: do not translate identifiers or remove interpolation fields.

Implementation Workflow

  1. Audit visible interface strings and extract them to stable locale keys.
  2. Define en and yo dictionaries with explicit missing-key fallback; document which translation keys require review.
  3. Preserve Unicode composition, punctuation, placeholders, screen-reader language tags, and user-entered spelling.
  4. Validate locale switching without losing entered form values or navigation position.
  5. Test canonical Unicode equivalence, distinct tone-marked letters, JSON/API/database round trips, and missing translations.
  6. Check actual fonts, mobile layouts, keyboard support, and screen readers; seek fluent Yoruba approval before declaring localization complete.

Code Examples

See examples/localization.mjs for a runnable, dependency-free implementation. Example strings are illustrative, not a substitute for native-speaker review.

javascript
import { translate, sameNormalizedText } from './examples/localization.mjs';

translate('yo', 'welcome'); // 'Ẹ káàbọ̀'
translate('yo', 'logout');  // 'Log out' (English fallback)
sameNormalizedText('ẹ́', 'ẹ\u0301'); // true: canonically equivalent
sameNormalizedText('ẹ', 'e');      // false: different Yoruba letters

A web component can use <span lang="yo">Ẹ káàbọ̀</span> to identify the language without altering the source text. Use your platform's equivalent language metadata on mobile.

Run Regression Tests

From the ECC repository root:

sh
node skills/yoruba-localization-testing/examples/localization.test.mjs

The test file covers six independent cases: Yoruba text, English, fallback, Unicode normalization, distinguishing tone/underdot differences, and JSON round trips. It uses only Node built-ins (Node 18+).

Anti-Patterns

  • text.normalize('NFD').replace(/\p{M}/gu, '') for display text: this destroys information.
  • Replacing ẹ with e, ọ with o, or ṣ with s.
  • Assuming Yoruba speakers want a Yoruba-only UI, or translating programming identifiers.
  • Shipping auto-generated Yoruba wording without review by a competent speaker.
  • Marking localization complete after tests pass without checking font glyphs and assistive technologies.

Best Practices

  • Keep translation fixtures in UTF-8 source files under version control.
  • Verify Intl locale behavior in target browsers/runtimes rather than assuming every environment supports yo equally.
  • Make locale switching reversible, clearly labeled, and keyboard accessible.
  • Provide a way to report problematic translations and record review status.
  • Test mixed English/Yoruba sentences and longer content on real devices.

Related Skills

  • i18n-sync — locale keys and translation parity.
  • accessibility — screen readers and accessible interactions.
  • frontend-patterns — web UI patterns.
  • tdd-workflow — regression-driven implementation.

Loading package files…

Share this package

Add an Install with AIPM badge

Add this badge to a GitHub README so readers can open the package page and install the same version.

Install with AIPM
[![Install with AIPM](https://www.aipm-registry.com/install-with-aipm.svg)](https://www.aipm-registry.com/skills/affaan-m/yoruba-localization-testing/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)

Publisher

Affaan Mustafa

This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.

AI assistant context

What this skill is for

@affaan-m/yoruba-localization-testing@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: Test Yoruba (yo) and English bilingual interfaces for tone marks, underdots, Unicode normalization, translation fallback, and accessibility.

Install
aipm add @affaan-m/yoruba-localization-testing@1.0.0
Use after install
/yoruba-localization-testing <your description>

Tool targets

Install command by target

Add --no-init to any of these when you want the skill files without aipm.package.json or aipm-lock.json.

cursor

Run this variant when you want to install the package into cursor.

aipm add @affaan-m/yoruba-localization-testing@1.0.0 --target cursor --ci

claude

Run this variant when you want to install the package into claude.

aipm add @affaan-m/yoruba-localization-testing@1.0.0 --target claude --ci

Discussion

Comments (0)

Loading comments…

Keep exploring

Affaan Mustafa/ui-canvas

Preview a UI component mockup in a local browser canvas where the human directly edits it (move, resize, edit text, delete, restyle), switches mobile/desktop/custom viewports, tests it, chats with you, and clicks Save and Finish. You the...

Published by Affaan Mustafa

skillScanned · no issues★ 308KImported · UnverifiedAll toolsNov 21, 2026, 1:11 AM6.61 KBMIT

Affaan Mustafa/web-perimeter-owasp-2025-audit

Passive, non-destructive web perimeter security auditing mapped to OWASP Top 10:2025 surface leads, CDN Unkeyed Header Web Cache Poisoning (X-Forwarded-Host), supply chain manifest exposure, git object dumping prevention (/.git/HEAD), cr...

Published by Affaan Mustafa

skillScanned · flagged★ 305KImported · UnverifiedAll toolsNov 17, 2026, 1:13 AM8.86 KBMIT

Affaan Mustafa/terraform-patterns

Terraform and OpenTofu infrastructure-as-code patterns for project layout, remote state, modules, variables, secrets, safe plan/apply workflows, and CI. Use when writing or reviewing .tf files, structuring modules or environments, config...

Published by Affaan Mustafa

skillScanned · no issues★ 305KImported · UnverifiedAll toolsNov 17, 2026, 1:13 AM8.43 KBMIT

Package FAQ

Install and compatibility

How to install
Run aipm add @affaan-m/yoruba-localization-testing@1.0.0 in a project that has AIPM initialized.
Supported tools
@affaan-m/yoruba-localization-testing@1.0.0 supports All tools.

Before installing

AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.