CloudBeaver localization
Not all localization comes from the Cloudbeaver source code. Some of it comes from the backend side. So, if you want to, for example, to change or create localization for database objects, you need to do it in another repository, at https://github.com/dbeaver/dbeaver. Here is a guide to how you can contribute to DBeaver’s localization https://github.com/dbeaver/dbeaver/wiki/Localization. To create or improve localization for the Cloudbeaver interface, follow these steps:
Note: The images below are taken from Fork. You can use another application to create pull-requests.
- Open https://github.com/dbeaver/cloudbeaver and fork repository
- Clone the forked repository https://github.com/…/cloudbeaver to your local system.
- Create a new branch from devel branch (name it, for example, italian-localization).
- Go to the local repository and find the localization files you want to translate.
In Cloudbeaver, all translatable resources are located in the locales folder. The path to the folder is
Create a copy of
Example:
- Open the created file and translate the tokens to your language. Change EN on
in the top of the file[locale-code]=>export const defaultENLocale.export const defaultITLocale
Here is the structure of the language tokens:
Find localization service (
or similar service name) in same package you just created localization file. Then register new locale analogously to other ones in the file. UseLocalizationService.tsfor this switch case[locale-code]Open the branch changes and stage them
- Commit the changes
- Push to origin
Go to Github and press Compare & pull request in your repository
Write a description and create pull request
Here is Github instruction. You can use different IDEs to create pull requests.