# Company description Source: https://docs.prismy.io/ai/company-description The first thing to do is to describe your company. This will help our AI to better understand in which context it will translate your content. You can do it in the [AI instructions tab](https://app.prismy.io/prompts). Few sentences, something like: "Airbnb is a marketplace where hosts rent out homes or rooms to guests for short stays. You are translating some website pages, webapp and mobile app." Company description # Custom AI Instructions Source: https://docs.prismy.io/ai/custom-instructions If you need to provide specific guidance to the AI, you can do so in the [**AI Instructions** tab](https://app.prismy.io/prompts). This feature allows you to define custom instructions that tailor the AI’s behavior to your unique needs. Custom instructions You can also apply **filters** to target specific repositories or bundles of files.\ This is especially useful in scenarios like: * A **marketplace** platform where the **seller side** requires a **formal tone**, * While the **buyer side** benefits from a more **casual and friendly tone**. By customizing the instructions, you ensure the generated content aligns with your tone, style, and strategic intent. # Set Up Your Glossary Source: https://docs.prismy.io/ai/glossary Once you've completed your company description, the next important step is to configure your glossary. Your glossary is a curated list of key terms that are important to your business — terms you want translated the same way every time to ensure consistency across your content. **Important:** We highly recommend generating the glossary in the target language *before* initiating translations. This is the only way to guarantee consistent terminology in your newly translated content. **Tip:** Having your glossary set up in at least two languages helps the AI produce even better translations. For example, knowing that “Stage” translates to “Étape” in French helps the AI pick the most accurate equivalent in Spanish. ## Glossary Generation The good news? We’ve made it super easy to generate your glossary! At the top of the Glossary page, you’ll find two options: * `Generate glossary terms from a source language` * `Generate glossary terms translations into a target language` These actions are based on your current content and wordings. You can access them directly in the [Glossary tab](https://app.prismy.io/glossary). Glossary # Overview Source: https://docs.prismy.io/ai/overview Here is what empowers Prismy's AI translations.
Ensuring **consistency** and **quality** of the translations. ## How it works image When generating translatiosn, Prismys' AI build the context, by combining multiple sources: * Your company description * Your custom instructions * Your Glossary * Existing similarity translations Let's deep dive and see how to configure these sources in only few minutes. # Similarity learning Source: https://docs.prismy.io/ai/similarity-learning ## Smart Reuse of Existing Translations Whenever possible, **Prismy automatically reuses existing translations** from your projects. This means that if a sentence, phrase, or term has already been translated before, Prismy will detect it and apply the same translation in new content. This offers multiple benefits: * ✅ **Consistency:** Your content stays uniform across languages and platforms. * 🚀 **Speed:** Reduces the time and effort needed to translate recurring phrases. * 💸 **Cost Efficiency:** Minimizes the need for redundant translations, saving time and budget. This feature is especially powerful for teams managing large volumes of content, or updating multilingual platforms where tone and terminology must remain aligned. > Behind the scenes, Prismy uses smart matching and memory techniques to detect reusable content — no extra setup required. You can focus on creating new content, while Prismy takes care of keeping everything coherent. # Get Translation File Source: https://docs.prismy.io/api-reference/prismy-hosted/get-translation-file GET /api/public/prismy-hosted/{repo_id}/{language}/{bundleName} Retrieves the JSON translation file for a specific repository, language, and bundle Download translation files from the command line or CI with **`prismy pull`**

See the [Prismy Hosted CLI guide](/tech/cli/prismy-hosted).

# Merge branch Source: https://docs.prismy.io/api-reference/prismy-hosted/merge-branch POST /api/public/prismy-hosted/merge-branch Merges a Prismy branch into the main branch for a specific repository # Update Translation File Source: https://docs.prismy.io/api-reference/prismy-hosted/update-translation-file POST /api/public/prismy-hosted/{repo_id}/{language}/{bundleName} Updates or creates a translation file for a specific repository, language, and bundle Upload translation files from the command line or CI with **`prismy push`**

See the [Prismy Hosted CLI guide](/tech/cli/prismy-hosted).

# Get AI Instructions Source: https://docs.prismy.io/api-reference/public-api/get-ai-instructions GET /api/public/ai-instructions Retrieves the organization description and all AI instructions for the organization's default language (from installation config, or en-US / en-GB as fallback). # Get AI Instructions for Language Source: https://docs.prismy.io/api-reference/public-api/get-ai-instructions-lang GET /api/public/ai-instructions/{lang} Retrieves the organization description and all AI instructions for a specific language. # Get Glossary Source: https://docs.prismy.io/api-reference/public-api/get-glossary GET /api/public/glossary Retrieves all glossary terms and their translations for your organization # Get Glossary for Language Source: https://docs.prismy.io/api-reference/public-api/get-glossary-lang GET /api/public/glossary/{lang} Retrieves all glossary terms and their descriptions filtered for a specific language. Only rows that have a term in the requested language are returned. If no language is provided, defaults to the organization's main language (from installation config), or en-US / en-GB as fallback. # Generate Translations Source: https://docs.prismy.io/api-reference/public-api/translate POST /api/public/translate Translate multiple strings from a single source language to a single target language. # Generate Translations (Multilang) Source: https://docs.prismy.io/api-reference/public-api/translate-multilang POST /api/public/translate-multilang Translate multiple strings across multiple source languages and target languages. # Chrome Extension Source: https://docs.prismy.io/chrome-extension In-context editing directly from your webapp # Download link # Context We wanted to provide a way for the business people, product managers, designers to edit the wording of their webapp/website without having to open Prismy. We build our Chrome Extension to enable wording changes directly from your webapp or website. # Main features **✏️ Edit copy in place** Click on any text element on your live site or app and update the wording instantly — no need to touch the codebase. **👀 Preview before publishing** See your changes in context before they go live to ensure perfect fit and flow. **🚀 Submit changes in one click** We auto-generate a Pull Request with your updates — fully synced with your Git repo and localization files (e.g. locales/en.json). 🤖 AI-powered translations + human review Generate high-quality AI translations, then refine them on the fly — all within the Chrome Extension. No external tools needed. ⚡ Built for fast-moving teams Empower marketers, PMs, and localization leads to review AI-translated content and make live changes when needed — while developers stay focused on shipping features. # Screenshots Live editing from your webapp Submit changes to the dev team, directly on github/gitlab # Configuring Files to Sync with Prismy Source: https://docs.prismy.io/doc/config-file Prismy allows you to configure which localization files to sync by simply adding a `prismy.json` file at the root of your repository. This configuration file lets you define the main branch, primary language, and the specific files you want to synchronize. # Example Configurations ### Nested JSON Format with Alphabetical Sorting ```json theme={null} { "mainBranch": "main", "mainLanguage": "en-US", "filesToSync": [ { "sort": "alphabetical-order", // "alphabetical-order" | "not-sorted" "format": "nested-json", // "flat-json" | "nested-json" "i18nLib": "next-intl", // "i18next" | "polyglotjs" | any other i18n lib "files": { "en-US": ["lib/i18n/messages/en/*"], "fr-FR": ["lib/i18n/messages/fr/*"] } } ] } ``` ### Flat JSON Format Without Sorting ```json theme={null} { "mainBranch": "main", "mainLanguage": "en-US", "filesToSync": [ { "sort": "not-sorted", // "alphabetical-order" | "not-sorted" "format": "flat-json", // "flat-json" | "nested-json" "files": { "en-US": ["lib/i18n/home/en.json", "lib/i18n/settings/en.json"], "fr-FR": ["lib/i18n/messages/fr.json", "lib/i18n/settings/fr.json"] } } ] } ``` ### Auto-Filling Missing Translation Files Set `fillMissingLangFiles: true` to automatically track the same files across all languages, even if they don't exist yet. ```json theme={null} { "mainBranch": "main", "mainLanguage": "en-US", "filesToSync": [ { "sort": "alphabetical-order", "format": "nested-json", "fillMissingLangFiles": true, "files": { "en-US": ["locales/en/home.json", "locales/en/settings.json"], "fr-FR": ["locales/fr/home.json"], "es-ES": ["locales/es/settings.json"] } } ] } ``` **Result:** Prismy will track all three files for each language: * `en-US`: `home.json`, `settings.json` * `fr-FR`: `home.json`, `settings.json` ← auto-added * `es-ES`: `home.json` ← auto-added, `settings.json` **Use this when:** * Adding new translation files that should exist for all languages * Working with glob patterns to ensure consistency across languages * You want Prismy to detect missing translations even if the file doesn't exist yet Currently supported for GitHub only. GitLab support coming soon. # Configuration Options * **`mainBranch`**: The default branch for Prismy (can be staging or preprod). * **`mainLanguage`**: The source language for translations. * **`filesToSync`**: Array of file groups to sync. Each group supports: * **`sort`**: How keys are organized - `alphabetical-order` or `not-sorted`. * **`format`**: File structure - `flat-json` (key-value pairs) or `nested-json` (hierarchical). * **`i18nLib`**: Your i18n library (e.g., `i18next`, `polyglotjs`, `react-intl`) for proper pluralization handling. * **`fillMissingLangFiles`**: When `true`, automatically tracks the same files across all languages, creating placeholders for missing ones. (GitHub only) * **`files`**: Language codes mapped to file paths (supports glob patterns like `locales/*/home.json`). # 👋 Welcome to Prismy Docs Source: https://docs.prismy.io/introduction Welcome to the official documentation for **Prismy, your next-gen localization partner**. Whether you're just getting started or you're a seasoned user looking to go deeper, you’re in the right place. Our mission is simple: **make content localization fast, seamless, and delightful**. This documentation will help you unlock the full power of Prismy—from setting up your first project to integrating with your dev stack and collaborating across teams. ## 🔑 Key Principles ### 1. **Your codebase is the source of truth — or let Prismy host your files** You can keep translation files in your codebase and plug Prismy into GitHub or GitLab for automatic sync and PR-based workflows. If you prefer not to use Git for translations, **Prismy Hosted** lets you push and pull files via API or CLI; Prismy stores them and serves CDN-hosted versions you can use directly in your app. [Learn about the Prismy Hosted flow →](/tech/prismy-hosted-flow) ### 2. **Design and code in one language, release in 70+** Save a lot of precious time from your team by designing and coding in one language while publishing globally. Keep your workflow clean while Prismy handles multilingual output behind the scenes. ### 3. **Powerful AI tailored to your business** Our AI doesn't just translate—it learns from your product, tone, and brand to generate smart, context-aware content. ### 4. **Enable anyone to review and make changes** Localization is a team sport. With Prismy, anyone—from developers to marketers—can contribute without friction. *** Want to know more about our philosophy? Read our [vision statement](https://prismy.io/about). # Quickstart Source: https://docs.prismy.io/quickstart No more than 5 minutes are required! ## Plug to your codebase (1 minute) You can either plug Prismy to your Git repo (GitHub or GitLab) or use **Prismy Hosted** to store and serve translations in the cloud. You can do so from your [Settings](https://app.prismy.io/settings): Setup your files You must have a framework with a built-in support of localization in place or an i18n library implemented. Learn more about [Pre-requisities](tech/pre-requisities) and [supported frameworks and files](tech/frameworks-and-files). You have too much translations files and you often add new ones when implementing new features? Consider to setup [Prismy's config file](doc/config-file) at the root of your repository! **Git:** Prismy syncs your translation files automatically **Git:** Prismy detects missing translations in Pull Requests **Git:** Developers can generate translations in one click; translators can review and make changes **Prismy Hosted:** Push/pull via API or CLI; Prismy hosts files and serves CDN URLs. See the [Prismy Hosted flow](tech/prismy-hosted-flow). ## Tailor your AI (3 minutes) The first step to world-class documentation is setting up your editing environments. Give context about company to the AI Ensure consistency and improve translation Prismy has already instructed your AI translator to fit your languages standards. But in case you need to be more formal or specify specific tone of voice. # AI Agent Skills Source: https://docs.prismy.io/tech/ai-skills Agent skills for Claude Code, Cursor, GitHub Copilot and other AI coding assistants to manage i18n workflows with Prismy. When AI coding assistants like [Claude Code](https://docs.anthropic.com/en/docs/claude-code/skills), [Cursor](https://cursor.com/docs/context/skills), or [GitHub Copilot](https://github.com/features/copilot) write code for you, they often introduce hardcoded strings, edit translation files they shouldn't touch, or ignore your project's glossary and tone of voice. Prismy's agent skills solve this. They are a set of instructions that plug into your AI assistant so it understands your i18n workflow, follows your copywriting rules, and generates translations properly. Instead of cleaning up after your AI, you get internationalization-ready code from the start. Every skill is **optional and independent**. Install one, a few, or all of them depending on your workflow. *** ## Vision Prismy embraces your coding flow and super-charges it. AI agents will try to translate your app themselves. These skills make sure they do it **right**: respecting your glossary, following your guidelines, and never bypassing your translation engine. Prismy keeps these skills aligned with the latest AI assistant standards and i18n best practices, so you don't have to. More skills are coming. Have an idea or feedback? [Let us know](mailto:cyril@prismy.io). *** ## Available Skills Generates translations locally via the Prismy CLI after your assistant modifies source keys. Skip this skill if you prefer triggering translations from your PR/MR instead. Requires Prismy CLI and an API key. Fetches your glossary and wording instructions from Prismy before the AI writes any user-facing copy. Keeps every string on-brand and consistent. Requires Prismy CLI and an API key. Scans code changes for hardcoded strings (labels, headings, error messages, etc.) and flags them for extraction into locale files. Generic skill. No Prismy account needed. Prevents the AI from editing target-language locale files. Translations come from your translation engine, not from the AI guessing. Generic skill. No Prismy account needed. *** ## Installation ### Prerequisites Some skills require the [Prismy CLI](https://www.npmjs.com/package/prismy-cli) (see each skill's description above). If you only install generic skills like **i18n-detect-hardcoded** or **i18n-enforcing-source-language-only**, no CLI setup is needed. For skills that use the CLI: ```bash theme={null} npm install -g prismy-cli prismy auth ``` Get your API key from [Prismy Settings](https://app.prismy.io/settings). ### Install all skills ```bash theme={null} npx skills add prismy-io/prismy-agent-skill ``` ### Install specific skills Every skill is optional. Pick only what you need: ```bash theme={null} npx skills add prismy-io/prismy-agent-skill --skill i18n-translate npx skills add prismy-io/prismy-agent-skill --skill i18n-respect-copywriting-guidelines npx skills add prismy-io/prismy-agent-skill --skill i18n-detect-hardcoded npx skills add prismy-io/prismy-agent-skill --skill i18n-enforcing-source-language-only ``` ### Recommended combination For most projects using Prismy, install the translation workflow, copywriting guidelines, and the source-only guard: ```bash theme={null} npx skills add prismy-io/prismy-agent-skill \ --skill i18n-translate \ --skill i18n-respect-copywriting-guidelines \ --skill i18n-enforcing-source-language-only ``` *** ## How to Use Once installed, the skills work **automatically**. There is nothing to configure in your code. Your AI assistant picks them up and follows their instructions as it writes code. Here is what changes in practice: 1. **You prompt your AI assistant as usual** ("add a signup button", "refactor this component", etc.). 2. The assistant detects which skills are installed and applies them in the background. 3. Depending on the skills you have: * Hardcoded strings are flagged and extracted to your locale files. * Target-language files are left untouched. * New copy follows your glossary and brand guidelines. * Translations are generated locally via `prismy generate`. You do not need to mention the skills in your prompts. They act as guardrails and best practices that your AI assistant follows on every task. You can also trigger a skill manually at any time by asking your assistant directly, for example: "run i18n-detect-hardcoded on the files I changed" or "check my copywriting guidelines before I commit". *** ## GitHub & GitLab Integration AI agent skills are fully compatible with Prismy's GitHub and GitLab integrations. They cover different moments of your workflow: * **Skills** act during local development, while your AI assistant is writing code. * **GitHub / GitLab integration** acts when you push or open a PR/MR, letting you trigger translations via a comment. You can use both together, or choose one approach: | Approach | How translations are generated | | -------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | **With i18n-translate skill** | Your AI assistant runs `prismy generate` locally after editing source keys. Translations are ready before you push. | | **Without i18n-translate skill** | You push your changes and trigger translations directly from the PR/MR with a comment. | Both approaches produce the same result. The choice depends on whether you prefer translations generated locally or from the PR/MR. The other skills (detect hardcoded, copywriting guidelines, source-only guard) work independently of how you generate translations. See the [GitHub](/tech/github) or [GitLab](/tech/gitlab) integration guides for details on the comment-based workflow. *** ## FAQ The skills are compatible with any assistant that supports the agent skills standard, including **Claude Code**, **Cursor**, **GitHub Copilot**, and similar tools. Not necessarily. **i18n-detect-hardcoded** and **i18n-enforcing-source-language-only** are generic i18n best-practice skills that work on any project without a Prismy account. **i18n-translate** and **i18n-respect-copywriting-guidelines** require the Prismy CLI and an API key, since they call Prismy's services. No. Every skill is entirely optional and independent. Install only the ones that match your workflow. You can always add or remove skills later. The **i18n-translate** skill calls the Prismy CLI to generate translations. The **i18n-enforcing-source-language-only** skill actively prevents the AI from editing target-language files directly. Your translations always go through your translation engine, not the AI. No. They complement each other. Skills handle the local development phase, while the GitHub/GitLab integration handles the CI/PR phase. See the [section above](#github--gitlab-integration) for details. The skills are open source and available on GitHub: [prismy-io/prismy-agent-skill](https://github.com/prismy-io/prismy-agent-skill). Licensed under MIT. # CLI Overview Source: https://docs.prismy.io/tech/cli Manage translations from the command line The Prismy CLI provides commands for managing translations, tailored to your integration setup. ## Two use cases Choose the guide that matches how you use Prismy: ### 1. GitHub or GitLab integration If Prismy is connected to your GitHub or GitLab repo, translations sync automatically and you can trigger them via PR comments. Use the CLI to **generate translations locally** during development. ### 2. Prismy Hosted If you use Prismy Hosted without native GitHub/GitLab, you sync translation files yourself. Use **`prismy push`** and **`prismy pull`** to upload and download translations (locally or in CI). ## Quick start 1. **Get an API key** from [Prismy Settings](https://app.prismy.io/settings). 2. **Install the CLI**: `npm install -g prismy-cli` 3. **Authenticate**: `prismy auth ` 4. Follow the guide for your setup: [GitHub/GitLab](/tech/cli/github-gitlab) or [Prismy Hosted](/tech/cli/prismy-hosted). Source: [prismy-cli on GitHub](https://github.com/TheCompanyX/prismy-cli) # GitHub & GitLab — prismy generate Source: https://docs.prismy.io/tech/cli/github-gitlab Generate translations locally when using Prismy's native Git integration Use **`prismy generate`** when Prismy is integrated with GitHub or GitLab. Prismy syncs your translation files and triggers translations via PR comments; `generate` lets you create translations locally during development. ## When to use * Prismy is connected to your GitHub or GitLab repo * You want to generate translations locally before committing * You're on a feature branch and want to preview translations Using **Prismy Hosted** without native Git? Use [prismy push & pull](/tech/cli/prismy-hosted) instead. ## Installation & auth ```bash theme={null} npm install -g prismy-cli ``` Set your API key (from [Prismy Settings](https://app.prismy.io/settings)): ```bash theme={null} prismy auth # Show current key prismy auth --show # Reset prismy auth --reset ``` ## Basic usage ```bash theme={null} prismy generate ``` Or simply: ```bash theme={null} prismy ``` The CLI will: * Detect your repo from git remotes * Compare the current branch with the main branch * Find new translation keys in changed files * Generate translations for all configured languages * Update your local translation files No manual config is required; the CLI uses your Prismy repository settings (main branch, file paths, languages). ## Options | Option | Short | Description | | --------------- | ----- | ------------------------------------------------- | | `--base-branch` | `-b` | Base branch to compare against (default: main) | | `--repo-name` | `-r` | Repository name (when git remote detection fails) | Examples: ```bash theme={null} prismy generate --base-branch develop prismy generate --repo-name my-project prismy generate -b develop -r my-project ``` ## Typical workflow ```bash theme={null} git checkout -b feature/new-translations # ... add new translation keys in your code ... prismy generate git add . git commit -m "Add translations for new features" ``` ## Integration with GitHub/GitLab 1. **Development**: Use `prismy generate` locally to preview translations. 2. **Pull requests**: Prismy detects missing translations and can comment on PRs. 3. **CI**: Prismy syncs files; translations can be triggered via PR comments. No manual push/pull of files. Reference: [prismy-cli docs — PRISMY\_GENERATE](https://github.com/TheCompanyX/prismy-cli/blob/main/docs/PRISMY_GENERATE.md) # Prismy Hosted — push & pull Source: https://docs.prismy.io/tech/cli/prismy-hosted Sync translation files with Prismy Hosted using the CLI Use **`prismy push`** and **`prismy pull`** when you use **Prismy Hosted** without native GitHub/GitLab. You upload source files to Prismy and download translated files (locally or in CI). Using **GitHub or GitLab** with Prismy? Use [prismy generate](/tech/cli/github-gitlab) instead. ## Authentication The CLI looks for an API token in this order: 1. `--api-token` (flag) 2. `PRISMY_API_TOKEN` environment variable 3. Stored key from `prismy auth` (only when **not** in CI) In CI, you must set `--api-token` or `PRISMY_API_TOKEN`; the CLI will not prompt. Get your token from [Prismy Settings](https://app.prismy.io/settings). *** ## prismy push Upload a local translation file to Prismy. ```bash theme={null} prismy push --repo-id --language --bundle-name ``` **Required:** `--repo-id`, `--language`, `--bundle-name` Example: ```bash theme={null} prismy push ./locales/en/common.json \ --repo-id 25060c5dfa \ --language en-US \ --bundle-name common ``` ### Push options | Option | Description | | ------------------------- | ------------------------------------------------------------- | | `--override` | Replace the file entirely; otherwise only new keys are merged | | `--no-auto-translate` | Do not auto-translate new keys to other languages | | `--wait-for-translations` | Wait for translations to finish before exiting (useful in CI) | | `--branch` | Target branch (Prismy may create it from main) | | `--user` | Author username/email for the change | | `--tags` | Static tags for new/edited keys | ### File formats * **JSON, .arb, .xcstrings**: Parsed and sent as structured JSON. * **Other (.yaml, .po, .resx, .xml, .ts, .js)**: Sent as raw content with format metadata. *** ## prismy pull Download a translation file from Prismy. The CLI writes JSON to the path you give. ```bash theme={null} prismy pull --repo-id --language --bundle-name ``` Example: ```bash theme={null} prismy pull ./locales/en/common.json \ --repo-id 25060c5dfa \ --language en-US \ --bundle-name common ``` **Options:** `--repo-id`, `--language`, `--bundle-name` (required); `--branch` (default: main); `--api-token`. The file is created or overwritten. If the file does not exist on Prismy, you get an empty object `{}`. For non-JSON formats (e.g. YAML, PO), use the CDN URL from your Prismy Hosted configuration. *** ## CI setup Use a pipeline to push the source file, wait for translations, then pull translated files. ### Secret / variable | Name | Description | Secret | | ------------------ | --------------------- | ------ | | `PRISMY_API_TOKEN` | API token from Prismy | Yes | Optional: `PRISMY_REPO_ID`, `PRISMY_BUNDLE_NAME` (or pass `--repo-id` / `--bundle-name` in the script). ### GitHub Actions **.github/workflows/prismy-sync.yml** ```yaml theme={null} name: Prismy sync on: push: branches: [main] workflow_dispatch: jobs: prismy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Setup Node uses: actions/setup-node@v4 with: node-version: "20" - name: Install Prismy CLI run: npm install -g prismy-cli - name: Push source and wait for translations env: PRISMY_API_TOKEN: ${{ secrets.PRISMY_API_TOKEN }} run: | prismy push src/i18n/en.json \ --repo-id "${{ vars.PRISMY_REPO_ID }}" \ --language en-US \ --bundle-name "${{ vars.PRISMY_BUNDLE_NAME }}" \ --wait-for-translations - name: Pull translated files env: PRISMY_API_TOKEN: ${{ secrets.PRISMY_API_TOKEN }} run: | prismy pull src/i18n/en.json --repo-id "${{ vars.PRISMY_REPO_ID }}" --language en-US --bundle-name "${{ vars.PRISMY_BUNDLE_NAME }}" prismy pull src/i18n/es.json --repo-id "${{ vars.PRISMY_REPO_ID }}" --language es-ES --bundle-name "${{ vars.PRISMY_BUNDLE_NAME }}" prismy pull src/i18n/fr.json --repo-id "${{ vars.PRISMY_REPO_ID }}" --language fr-FR --bundle-name "${{ vars.PRISMY_BUNDLE_NAME }}" - name: Commit and push changes run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add src/i18n/ git diff --staged --quiet || git commit -m "chore(i18n): sync translations from Prismy" git push ``` Add `PRISMY_API_TOKEN` in **Settings → Secrets and variables → Actions**. Optionally add variables `PRISMY_REPO_ID` and `PRISMY_BUNDLE_NAME`, or hardcode them in the YAML. ### GitLab CI Add a job (or merge into `.gitlab-ci.yml`): ```yaml theme={null} prismy-sync: image: node:20 rules: - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "main" - if: $CI_PIPELINE_SOURCE == "web" variables: PRISMY_REPO_ID: "YOUR_REPO_ID" PRISMY_BUNDLE_NAME: "common" before_script: - npm install -g prismy-cli script: - prismy push src/i18n/en.json --repo-id "${PRISMY_REPO_ID}" --language en-US --bundle-name "${PRISMY_BUNDLE_NAME}" --wait-for-translations - prismy pull src/i18n/en.json --repo-id "${PRISMY_REPO_ID}" --language en-US --bundle-name "${PRISMY_BUNDLE_NAME}" - prismy pull src/i18n/es.json --repo-id "${PRISMY_REPO_ID}" --language es-ES --bundle-name "${PRISMY_BUNDLE_NAME}" - prismy pull src/i18n/fr.json --repo-id "${PRISMY_REPO_ID}" --language fr-FR --bundle-name "${PRISMY_BUNDLE_NAME}" - | git config user.name "GitLab CI" git config user.email "ci@gitlab" git add src/i18n/ git diff --staged --quiet || git commit -m "chore(i18n): sync translations from Prismy" git push "https://oauth2:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" HEAD:${CI_COMMIT_REF_NAME} ``` Add `PRISMY_API_TOKEN` in **Settings → CI/CD → Variables** (masked). Adjust `git push` if you use a deploy token or project access token. ### Bitbucket Pipelines Use a step that installs the CLI, runs `prismy push` with `--wait-for-translations`, then `prismy pull` for each language, and finally commits and pushes. Set `PRISMY_API_TOKEN`, `PRISMY_REPO_ID`, and `PRISMY_BUNDLE_NAME` as repository variables. ### Run only when i18n changes * **GitHub Actions**: Under `on.push`, add `paths: ["src/i18n/en.json"]`. * **GitLab CI**: In `rules`, use `changes: ["src/i18n/en.json"]`. Adjust paths and branch names to match your project. Reference: [prismy-cli — PRISMY\_PUSH\_PULL\_CI](https://github.com/TheCompanyX/prismy-cli/blob/main/docs/PRISMY_PUSH_PULL_CI.md), [CI\_SETUP](https://github.com/TheCompanyX/prismy-cli/blob/main/docs/CI_SETUP.md) # Set your files to sync Source: https://docs.prismy.io/tech/files-to-sync You can do so from your [Settings](https://app.prismy.io/settings): Setup your files You must have a framework with a built-in support of localization in place or an i18n library implemented. Learn more about [Pre-requisities](../tech/pre-requisities) and [supported frameworks and files](../tech/frameworks-and-files). You have too much translations files and you often add new ones when implementing new features? Consider to setup [Prismy's config file](/doc/config-file) at the root of your repository! # ✅ Supported Frameworks and Files Source: https://docs.prismy.io/tech/frameworks-and-files Everything you need to know about compatible frameworks and file formats. # 🧱 Frameworks & i18n Libraries Prismy is **stack-agnostic**—it works with any frontend or backend framework, as long as your translation files live in your codebase. No vendor lock-in, no black boxes. Prismy works seamlessly with frameworks like **React**, **Next.js**, **Vue**, **Svelte**, **Angular**, **Remix**, **Astro**, and **SolidJS**. Commonly used i18n libraries supported include: * `i18next` * `react-i18next` * `next-intl` * `react-intl` * `LinguiJS` * `Polyglot.js` * `vue-i18n` * `vuex-i18n` * `Svelte-i18n` * `i18n-js` (React Native, Expo) We also support projects using **Electron** and **React Native**. You can organize your `.json`, `.ts`, or `.tsx` translation files however you like—Prismy adapts to your structure. Prismy supports PHP frameworks like **Laravel**, **Symfony**, and **CakePHP**, including tools such as: * `Laravel Lang` * `Symfony Translation` * `.php`, `.json`, `.po` and `.mo` catalogs Ideal for both traditional MVC apps and headless PHP backends. Prismy is compatible with Python-based apps including **Django**, **Flask**, and **FastAPI**. Supported libraries and tools: * `gettext` (`.po` / `.mo`) * `Flask-Babel` * `django-rosetta` * `Babel` for string extraction * `Polib` for `.po` manipulation Both traditional and async Python projects are welcome. Prismy is flexible enough to work with many other ecosystems: * **Java/Kotlin** – using `.properties` or Android XML * **Swift / Objective-C** – using `.strings` files * **Ruby** – YAML-based translations and `i18n-tasks` * **Go** – `go-i18n`, TOML/YAML files * **.NET / C#** – `.resx` resource files Have a custom setup? We’re happy to support it. *** # 📁 Supported File Formats If your translations are stored in a format not listed here, or if you have unique format requirements, [let us know](mailto:cyril@prismy.io)—we’re happy to explore custom support. Common format for modern frontend frameworks. We support both flat and nested JSON files. Prismy can extract and manage inline strings and translation keys from your source code. Standard `gettext` formats, used in many Python and PHP projects. We support both editable `.po` and compiled `.mo` versions. Commonly used in **Flutter** apps. We support `.arb` files for Dart-based workflows. Structured formats used in **Android**, localization tools, and legacy systems. We parse `` tags and key-value entries. Frequently used in **Rails**, static site generators, and CI/CD configurations. Supports deeply nested structures and aliases. Resource files for **.NET** and **C#** projects. Fully compatible with Visual Studio-style workflows. Used in older systems or gaming engines for flat key-value translations. Used for localizing **iOS** and **macOS** apps, supported out of the box. Java-centric localization files with key=value pairs, common in enterprise and Android setups. Occasionally used in **Go** projects or DevOps environments. Supported on request. Useful for spreadsheets, LSP exports, or manual reviews. Handy for non-technical contributors. Markdown file translation is supported for documentation, blogs, or knowledge bases. # GitHub Source: https://docs.prismy.io/tech/github No more than 5 minutes are required! We created a Github App to make the installation the smoothiest possible.
With this two clicks installation, here's what you'll automatically unlock: * Automatic sync of your translations files * Automatic detection of missing translations in your Pull Requests * Ability to generate needed translations in one click * Ability to review and make changes to the translations from Prismy's interface * Get notified directly from Prismy when a new translation is needed * Receive requested changes from translators in a conflict-free pull request * Collaborate on feature branches with your translators * \[optional] Github checks to warn developers about missing translations on their commits ## Installation Install GitHub Install GitHub Install GitHub ## Usage Once installed, you will be redirected to the Settings to define your i18n files location. Next: [Define your files location in your settings](./files-to-sync). # GitLab Source: https://docs.prismy.io/tech/gitlab No more than 5 minutes are required! With this three clicks installation, here's what you'll automatically unlock: * Automatic sync of your translations files * Automatic detection of missing translations in your Merge Requests * Ability to generate needed translations in one click * Ability to review and make changes to the translations from Prismy's interface * Get notified directly from Prismy when a new translation is needed * Receive requested changes from translators in a conflict-free Merge Request * Collaborate on feature branches with your translators * \[optional] CI checks to warn developers about missing translations on their commits ## Installation Install GitHub Install GitHub Install GitHub ## Usage Once installed, you will be redirected to the Settings to define your i18n files location. Next: [Define your files location in your settings](./files-to-sync). # Pre requisities Source: https://docs.prismy.io/tech/pre-requisities # 🛠️ Before You Start To get the most out of Prismy, there are just a couple of simple requirements. These ensure we can provide a smooth, no-surprises experience—fully integrated with your existing tools and workflows. Keep full control. Your translation files stay versioned alongside your code—no lock-in, no hidden sync layers. Prismy works with your Git workflow: no manual scripts, just automated commits and pull requests with clean, AI-suggested copy updates. **Can't plug to Git?** You can use [Prismy Hosted](/tech/prismy-hosted-flow): push and pull translation files via API or CLI, configure repos and bundles in Prismy, and use CDN-hosted versions in your app. *** # 🔒 Why This Matters These requirements allow Prismy to stay out of your way while giving you powerful tools to scale localization: * ✅ **Version-controlled**: Everything runs through your repo, not a third-party CMS * ✅ **Developer-friendly**: No setup gymnastics or sync scripts * ✅ **Scalable**: Supports fast iteration and automated review cycles You stay in control—we just make it faster, smarter, and more collaborative. # Prismy Hosted — translations in the cloud Source: https://docs.prismy.io/tech/prismy-hosted-flow Host translation files in Prismy and serve them via CDN Use **Prismy Hosted** when you don't want to plug Prismy into GitHub or GitLab. Prismy stores your translation files; you push and pull via **API** or **CLI**, and your app can use **CDN-hosted** versions that update automatically when you change content. Prefer to keep translations in your Git repo? Use [GitHub](/tech/github) or [GitLab](/tech/gitlab) integration instead. ## How it works 1. **Push & pull files** — Upload and download translation files using the [API](/api-reference/prismy-hosted/update-translation-file) or the [CLI](/tech/cli/prismy-hosted) (`prismy push` / `prismy pull`). 2. **Prismy hosts the files** — Translations live in Prismy; no need to store them in your repository. 3. **Configure in Prismy** — In the [Prismy Hosted config](https://app.prismy.io) you set up **repositories** and **bundles** (e.g. which languages, which file structure). 4. **CDN-hosted versions** — Each time files are updated, Prismy publishes a CDN-hosted version. You can use that URL directly in your app to load the latest translations (e.g. at runtime or build time). ## Push and pull: API or CLI | Action | API | CLI | | ------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------- | | **Upload a file** | [Update Translation File](/api-reference/prismy-hosted/update-translation-file) | [`prismy push`](/tech/cli/prismy-hosted#prismy-push) | | **Download a file** | [Get Translation File](/api-reference/prismy-hosted/get-translation-file) | [`prismy pull`](/tech/cli/prismy-hosted#prismy-pull) | Use the CLI for local dev or CI; use the API when you need to integrate from your own backend or scripts. ## Configure repos and bundles In the **Prismy Hosted** section of your [Prismy dashboard](https://app.prismy.io), you define: * **Repositories** — One per project or app. * **Bundles** — Groups of translation files (e.g. by feature or locale). Each bundle has a name and language settings. Once configured, use the same `repo_id` and `bundle-name` in your API calls or CLI commands. ## CDN-hosted files When you update a translation file (via API or CLI), Prismy updates the hosted copy and refreshes the **CDN URL** for that file. You can: * Use the CDN URL in your app to fetch the latest JSON (or other format) at runtime. * Or pull files in CI with the CLI and commit them to your repo—your choice. The CDN URL is available in your Prismy Hosted configuration in the dashboard. ## Next steps * [CLI: push & pull](/tech/cli/prismy-hosted) — Install the CLI, authenticate, and run `prismy push` / `prismy pull` (including CI examples). * [API Reference: Prismy Hosted](/api-reference/prismy-hosted/get-translation-file) — GET and UPDATE endpoints for integration from your own code. # 🎲 The most efficient localization workflow Source: https://docs.prismy.io/the-workflow # 1️⃣ Fully integrated into the developer journey ## When developing a new feature With Prismy, you only need to create keys in one language. Generate translations for all new wordings with just one click when ready to ship. When you open a Pull/Merge request, Prismy detects new wordings requiring translation and comments with a button. Click it, and Prismy generates AI translations and commits them directly to your feature branch. Generate translations from Prismy's comment on your Pull Requests Run `prismy generate` from your terminal. Prismy identifies new translations and edits your files locally, letting you test your feature in multiple languages immediately. CLI to generate translations locally ## When receiving wording changes When team members update wordings, developers receive changes directly in GitHub/GitLab as pull requests. We consolidate multiple changes into a single PR and automatically rebase against your main branch to prevent conflicts. Receiving changes in a pull request ## Installation in one click Install Prismy with one click—no custom sync scripts needed. Prismy treats your codebase as the source of truth and automatically detects your translation files. Works with any i18n library or framework. If you don't use GitHub or GitLab for translations, you can use **Prismy Hosted**: push and pull files via API or CLI, configure repos and bundles in the Prismy UI, and use CDN-hosted versions of your files that update when you change content. See the dedicated guide for the full flow. # 2️⃣ Great tools for reviewers ## Great, easy-to-use interface Designed for anyone at your company who reviews or edits wordings—translators, PMs, or marketing teams. Key features: * **Guided homepage** with clear onboarding * **Automated context** from screenshots and design mockups * **AI suggestions** based on your brand guidelines * **Changes history** with full audit trail * **Syntax checker** to catch formatting errors ## In-context editing with our Chrome Extension Edit your webapp's text directly while browsing your app. Perfect for business people during demos, PMs refining copy, or designers perfecting messaging. Key benefits: * No context switching—edit without leaving your product * Visual validation in real environment * Changes automatically sync back to codebase Learn more about our Chrome Extension