All Projects → FlowSquad → camunda-modeler-i18n-plugin

FlowSquad / camunda-modeler-i18n-plugin

Licence: Apache-2.0 License
This plugin allows you to translate the UI of the Camunda Modeler. It contains ready-to-use translations for German, English, and Portuguese and can be easily extended or customized.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to camunda-modeler-i18n-plugin

camunda-modeler-tooltip-plugin
Add tooltips to various BPMN-elements revealing technical properties.
Stars: ✭ 44 (+214.29%)
Mutual labels:  camunda-modeler, camunda-modeler-plugin
dmn-check
A tool which performs static analyses on Decision Model Notation (DMN) files to detect bugs
Stars: ✭ 34 (+142.86%)
Mutual labels:  camunda, camunda-modeler-plugin
django-klingon
An app that allows you to translate anything in any language, even klingon ;)
Stars: ✭ 37 (+164.29%)
Mutual labels:  i18n
auto-translate-converter
a cli work for part of i18n project chain
Stars: ✭ 19 (+35.71%)
Mutual labels:  i18n
potools
Tools for working with translations in R
Stars: ✭ 42 (+200%)
Mutual labels:  i18n
i18n
Minimalist gettext style i18n for JavaScript
Stars: ✭ 14 (+0%)
Mutual labels:  i18n
crates
🌎 A tool to generate your locale files compatible with i18n.
Stars: ✭ 52 (+271.43%)
Mutual labels:  i18n
workit
Extensible worker for Node.js that works with both Zeebe and Camunda BPM platforms powered by TypeScript
Stars: ✭ 51 (+264.29%)
Mutual labels:  camunda
jsonapi-swagger
Create a JSONAPI Swagger.
Stars: ✭ 49 (+250%)
Mutual labels:  i18n
currency-exchange
Currency Exchange | powered by Angular 10, TypeScript, ES6+ features, SCSS, JavaScript, PWA
Stars: ✭ 13 (-7.14%)
Mutual labels:  i18n
language-subtag-registry
BCP 47/IANA language subtag data in JSON format.
Stars: ✭ 53 (+278.57%)
Mutual labels:  i18n
camunda-worker-dotnet
Ultimate solution to connect your ASP.NET Core application to Camunda external tasks
Stars: ✭ 53 (+278.57%)
Mutual labels:  camunda
plate
Internationalization library for Python
Stars: ✭ 31 (+121.43%)
Mutual labels:  i18n
python-fluent
Python implementation of Project Fluent
Stars: ✭ 142 (+914.29%)
Mutual labels:  i18n
storybook-addon-intl
Addon to provide a locale switcher and react-intl for storybook
Stars: ✭ 84 (+500%)
Mutual labels:  i18n
gutenberg-i18n-block
Gutenberg block to demo internationalization functionality.
Stars: ✭ 35 (+150%)
Mutual labels:  i18n
gettext i18n rails js
Extends gettext_i18n_rails making your .PO files available to client side javascript as JSON
Stars: ✭ 28 (+100%)
Mutual labels:  i18n
timeliness-i18n
Translations for timeliness and validates_timeliness gem.
Stars: ✭ 16 (+14.29%)
Mutual labels:  i18n
academic
Jekyll theme with a focus on simplicity, typography and flexibility
Stars: ✭ 71 (+407.14%)
Mutual labels:  i18n
camunda-bpm-data
Beautiful process data handling for Camunda BPM.
Stars: ✭ 24 (+71.43%)
Mutual labels:  camunda

Camunda Modeler I18N-Plugin

This plugin allows you to translate the UI of the Camunda Modeler. It contains translations for German, English and Portuguese and can be easily extended or customized.

For more information see our blog post (in German): https://www.flowsquad.io/blog/2020-07-15-internationalization-plugin-f%C3%BCr-den-camunda-modeler/

See it in action:

Screenshot of Camunda Modeler in German

Installation

To use this plugin in your installation, follow these simple steps:

  1. Click on releases
  2. Download the latest release artifact
  3. Extract it and put it inside the "resources/plugins" directory relative to your {APP_DATA_DIRECTORY} or {USER_DATA_DIRECTORY}.
  4. Restart the modeler
  5. Click on the language dropdown in the toolbar and select the language of your choice

Development

If you want to extend the plugin or provide custom translations or languages, you'll need a working installation of Node.js and a package manager like NPM or yarn. We use NPM in all our examples. Follow these steps:

Setup

Check the repository out and install all dependencies by using the command npm install. You can use any IDE of your choice such as WebStorm or Visual Studio Code. Every file contains comments that should help you get started.

Testing

To test it, build the plugin by using the command npm build. Then, copy the following files into the "resources/plugins" directory (for more see section Installation above):

  • index.js
  • dist/
  • menu/

Then restart the modeler to see all changes in effect. If you just changed the translations, opening the devtools via F12 and pressing Ctrl-R or Cmd+R is usually enough to reload the plugin. If you changed the menu, you have to restart the modeler, though.

Automate the local deployment

If you don't want to copy the files manually into the "resources/plugins" directory all the time, you can automate that using an NPM task. For that, install the package copyfiles:

npm install --dev copyfiles

Then, add another task in your package.json file:

"scripts": {
    "local": "npm run bundle && copyfiles dist/**/*.* index.js menu/**/*.* 'path/to/modeler/resources/plugins/i18n'"
}

Now, if you run npm run local, the plugin will be built and automatically copied into the destination directory. No more Ctrl+C and Ctrl+V required!

Add a new language

If you want to add a new language, follow these steps, after you set up your local development environment:

  1. Duplicate the "client/i18n-extension/languages/en" directory and adjust the name (we will use "fr" in this example)
  2. Translate the files in the duplicated folder
  3. Duplicate the "client/i18n-extension/languages/en.js" file and adjust the name and the imports inside it so your newly translated files are used:
    import bpmnJs from './fr/bpmn-js';
    import dmnJs from './fr/dmn-js';
    import propertiesPanel from './fr/properties-panel';
    import other from './fr/other';
    
    // ...
  4. Open the "client/i18n-extension/translate.js" file, import the new language and add it to the languages object:
    import {config} from '../configuration';
    import de from "./languages/de.js";
    import en from "./languages/en.js";
    import fr from "./languages/fr.js";
    
    const languages = {
        de, en, fr
    };
    
    // ...
  5. Open the "config/I18NPlugin.js" file and add a new entry to the language options:
    // ...
    const options = [
       // ...
       {value: 'fr', label: 'Français'}
    ]
    // ...
  6. Create a pull request to this repository and help us with adding new languages and improving the existing ones! :)

License

/**
 * Copyright 2021 FlowSquad GmbH
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

For the full license text, see the LICENSE file above.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].