Incontext Translation

In-context translation for Frappe & ERPNext with automated suggestions. Instantly add or edit translations directly from any page.

Install Incontext Translation

bench get-app https://github.com/Mazen-Almortada/incontext_translation

Tags

  • custom-translation
  • erpnext
  • erpnext-tools
  • frappe
  • frappe-app
  • frappe-framework
  • frappe-translations
  • in-context-translation
  • language-tools
  • translation
  • translator

Add the Frappe Gems badge to your README

Maintain Incontext Translation? Paste this into your README:

[![Listed on Frappe Gems](https://frappegems.com/api/method/frappe_gems.seo.badge?app=Mazen-Almortada%2Fincontext_translation)](https://frappegems.com/gems/apps/Mazen-Almortada/incontext_translation)

About Incontext Translation

In-Context Custom Translation for Frappe Apps

A Frappe app for creating custom translations right where you see them. Work faster with in-context editing and one-click automated suggestions.

✨ Features

  • Automated Suggestions: Get instant, one-click translation suggestions.
  • In-Context Editing: Edit translations directly on the page where the text appears.
  • Quick Translation Dialog: Instantly add or update translations with an easy-to-use popup.
  • Optional Context Support: Control whether a translation is saved with specific context.
  • Wide Coverage: Works with Workspace, Sidebar, Forms, and other common UI areas.
  • Multi-Language Ready: Designed to work with any language supported by Frappe.

📦 Installation

  1. Navigate to your Frappe Bench directory.
  2. Get the app:

    bench get-app https://github.com/Mazen-Almortada/incontext_translation.git
    
  3. Install the app on your site:

    bench --site yoursite.local install-app incontext_translation
    
  4. Build and clear cache:

    bench build
    bench --site yoursite.local clear-cache
    

🚀 Demo

Demo of Translation Mode

🔧 Configuration

Permissions: Only System Manager or Translation Editor roles can use this feature.

Dependencies: This app uses the deep-translator library for the translation suggestion feature.

Customization: You can extend the list of selectors in translation_mode.js to target more elements.

🪪 License

MIT License

Related Developer Tools apps for Frappe & ERPNext

  • Frappe — Low code web framework for real world applications, in Python and Javascript
  • Frappe Docker — Docker environment for developing, deploying, and running Frappe applications (ERPNext and custom apps) in production and development
  • Builder — Craft beautiful websites effortlessly with an intuitive visual builder and publish them instantly
  • Bench — CLI to manage Multi-tenant deployments for Frappe apps
  • Frappe Ui — A set of components and utilities for rapid UI development
  • Press — Full service cloud hosting for the Frappe stack - powers Frappe Cloud
  • Gameplan — Open Source Discussions Platform for Remote Teams
  • Doppio — A Frappe app (CLI) to magically setup single page applications and Vue/React powered desk pages on your custom Frappe apps.