Skip to content

Package localization

Kseniia edited this page Aug 6, 2021 · 11 revisions

In Cloudbeaver all translatable resources reside in the locales folder. The path to the folder is [package-name]\src\locales[locale-code].ts.

Not all localization comes from our source code, some of it comes from the backend side. So, if you want to, for example, change or create localization for database objects, you need to do it in another repository, that is https://github.com/dbeaver/dbeaver. Here is a guide how you can contribute to dbeaver localization https://github.com/dbeaver/dbeaver/wiki/Localization.

To create or improve the localization for Cloudbeaver follow these steps:

  • Prepare for changes
  • Make changes
    • Find the package you want to change localization in (for example, basic UI language tokens are located in the core-localization\src\locales[locale-code].ts file).
    • Create localization file (for example, if you want to add localization for the Italian language create it.ts file next to the en.ts file in the directory we have discussed before. After that, copy all content from the en.ts file to the it.ts file).
    • Translate tokens to your language.
      Here is the structure of the language tokens: ['token-name', 'token-value']. You need to change only the second part, 'token-value'. For example, if you wanted to translate the Loading... token, which is ['ui_processing_loading', 'Loading...'], it would look like this: ['ui_processing_loading', 'Caricamento in corso...'].
    • Commit and Push your changes back to your repo.
    • Click the Compare & pull request button.
    • Click Create pull request to open a new pull request (in branch devel) https://help.github.com/articles/creating-a-pull-request-from-a-fork/.

To find the right localization files, you can go to https://github.com/dbeaver/cloudbeaver -> press Go to file -> paste en. in the input and you should see all available localization files.

CloudBeaver Documentation

User Guide

Installation

Configuration

CloudBeaver AWS

CloudBeaver Enterprise Edition

Deployment

Clone this wiki locally