translations

Organize Laravel localization workflows for consistent en and de translations.

3|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/codebar-ag/coding-guidelines --skill translations-codebar-ag
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: translations
Source: https://github.com/codebar-ag/coding-guidelines/tree/main/resources/boost/skills/translations
Command: npx skills add https://github.com/codebar-ag/coding-guidelines --skill translations-codebar-ag

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Translation consistency across Laravel projects is hard without standardized localization rules; this guide provides conventions for translation keys, locales, and usage to prevent duplication and drift.

Core Features & Use Cases

  • Standardized key naming with domain namespaces for translations.
  • Frontend-friendly: use JSON files for generic labels and PHP arrays for domain-specific terms.
  • Ensure bilingual support (English and German) and test coverage with translation tests.

Quick Start

Add a new translation entry by updating both lang/en and lang/de files and run MissingTranslationTest to verify coverage.

Frequently Asked Questions about translations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize Laravel translation keys across en and de locale files?

Standardize Laravel translation keys by applying domain namespaces and consistent naming conventions across en and de locale files. Use frontmatter-driven SKILL.md rules to prevent duplication and drift between PHP arrays and JSON translation files.

When should I use JSON files vs PHP arrays for Laravel localization?

Use JSON files for generic frontend-friendly labels and PHP arrays for domain-specific terms in Laravel localization. This separation ensures translation files remain organized and prevents key duplication across user-facing strings.

How do I test for missing translations in a bilingual Laravel application?

Test for missing translations by running MissingTranslationTest to verify coverage across en and de locales. Add new translation entries to both lang/en and lang/de files, then execute the test to ensure complete bilingual support.

What is the best way to manage i18n placeholder syntax in Laravel projects?

Manage i18n placeholder syntax by following standardized rules for translations in Laravel projects. Consistent placeholder syntax across JSON and PHP translation files prevents runtime errors and ensures correct variable interpolation in user-facing strings.

Does this Laravel translation convention support both JSON and PHP lang files?

Yes, this convention supports both JSON and PHP translation files in Laravel. It specifies usage rules for both formats, ensuring bilingual English and German support while maintaining consistent key naming and namespace conventions across the project.

Why do my Laravel translation keys drift between different projects?

Laravel translation keys drift without standardized localization rules for key naming and namespaces. Applying consistent conventions across lang files and running MissingTranslationTest prevents duplication and ensures translation coverage remains synchronized.