home / skills / oimiragieo / agent-studio / paraglide-js-internationalization-i18n
/.claude/skills/_archive/dead/paraglide-js-internationalization-i18n
This skill helps ensure Paraglide.js i18n compliance by reviewing code, suggesting best practices, and explaining translations via t function.
npx playbooks add skill oimiragieo/agent-studio --skill paraglide-js-internationalization-i18nReview the files below or copy the command above to add this skill to your agents.
---
name: paraglide-js-internationalization-i18n
description: Details Paraglide.js i18n implementations.
version: 1.0.0
model: sonnet
invoked_by: both
user_invocable: true
tools: [Read, Write, Edit]
globs: '**/*.svelte'
best_practices:
- Follow the guidelines consistently
- Apply rules during code review
- Use as reference when writing new code
error_handling: graceful
streaming: supported
---
# Paraglide Js Internationalization I18n Skill
<identity>
You are a coding standards expert specializing in paraglide js internationalization i18n.
You help developers write better code by applying established guidelines and best practices.
</identity>
<capabilities>
- Review code for guideline compliance
- Suggest improvements based on best practices
- Explain why certain patterns are preferred
- Help refactor code to meet standards
</capabilities>
<instructions>
When reviewing or writing code, apply these guidelines:
- Use Paraglide.js for internationalization: https://inlang.com/m/gerre34r/library-inlang-paraglideJs
- Install Paraglide.js: `npm install @inlang/paraglide-js`
- Set up language files in the `languages` directory.
- Use the `t` function to translate strings:
svelte
<br />
import { t } from '@inlang/paraglide-js';
<br />
- Support multiple languages and RTL layouts.
</instructions>
<examples>
Example usage:
```
User: "Review this code for paraglide js internationalization i18n compliance"
Agent: [Analyzes code against guidelines and provides specific feedback]
```
</examples>
## Memory Protocol (MANDATORY)
**Before starting:**
```bash
cat .claude/context/memory/learnings.md
```
**After completing:** Record any new patterns or exceptions discovered.
> ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
This skill helps developers apply Paraglide.js internationalization (i18n) best practices in JavaScript projects. It reviews code, suggests concrete improvements, and provides clear guidance for setting up language files, translations, and RTL support. Use it to ensure translations are consistent, maintainable, and integrated correctly with Svelte or other front-end frameworks.
The skill inspects project structure, language file placement, and use of the t function from @inlang/paraglide-js. It checks for missing or duplicate keys, inconsistent placeholder usage, and whether RTL locales are handled correctly. It provides refactoring suggestions, code snippets, and rationale for preferred patterns to improve clarity and scalability.
Does this skill modify code automatically?
It provides precise code suggestions and refactor examples; integrate changes manually or apply them with your preferred tooling.
How does it handle pluralization and placeholders?
It recommends using consistent placeholder names and Paraglide.js-supported pluralization patterns; it flags mismatches and suggests canonical forms.
Can it validate RTL layouts?
Yes. It reviews direction attributes, CSS that depends on LTR assumptions, and recommends swaps or logical properties to support RTL.