-
Notifications
You must be signed in to change notification settings - Fork 504
CloudBeaver localization
CloudBeaver, as an open-source project, welcomes contributions from the community. If you're interested in adding or improving localization, you have the opportunity to enhance accessibility and usability for users worldwide. Here are the steps to help you contribute your own localizations to the CloudBeaver interface.
- Fork the CloudBeaver repository on GitHub.
- Clone your fork to your local system.
- Create a new branch specifically for your localization changes, for example,
italian-localization.
CloudBeaver allows you to add support for new languages by registering additional localization files. Follow the steps below to add new language:
-
If you don't have your language in the settings selector do this step. Extend the languages list with an XML configuration on the backend side. Go to the
server/bundles/io.cloudbeaver.server/plugin.xmlfile. Find another language example via proppoint="org.jkiss.dbeaver.language", and following the pattern, create an extension but for the language you want to add. -
In the frontend side of the app, navigate to the desired package where you want to add the new language. Localization files are typically located in the
localesfolder under[package-name]/src/locales.Duplicate the existing
en.tsfile and rename it to[locale-code].ts(e.g.,it.tsfor Italian). -
Open the newly created file and translate the tokens to the desired language. Each token is structured as
['token-name', 'token-value']. Modify the'token-value'to reflect your translation. -
To register the new language in CloudBeaver, find the
LocalizationService.ts(or similarly named service) in the same package.Add a switch case for the
[locale-code]following the format of the existing languages. -
Commit your changes to your branch and push them back to your repository.
To update existing translations, follow these steps:
-
Navigate to the package where the localization needs modification. Translatable resources are stored in the
localesfolder under[package-name]/src/locales/[locale-code].ts. -
Open the localization file for your target language.
-
Each token is structured as
['token-name', 'token-value']. Locate the token you want to modify and update the'token-value'with the correct translation. -
Commit your changes to your branch and push them back to your repository.
Tip: You can utilize the GitHub web interface to find the correct localization files by using the Go to file feature and searching for
en.to display all relevant localization files.
-
When you include words with apostrophes, such as
can't, ensure the value is wrapped in double quotes, not single quotes, within the localization files. This avoids syntax issues in the code.- Correct:
["ui_error_message", "Can't connect to the server"] - Incorrect:
['ui_error_message', 'Can't connect to the server']
- Correct:
After pushing your changes to your fork, navigate back to your GitHub repository. Click on Compare & pull request to initiate the process.
Note: Make sure to select the original (parent) repository's
develbranch as the base branch, and your fork’s branch where you made changes as the compare branch. Follow the prompts to create a pull request to merge your changes from your fork into the parent repository.
- Once you submit your pull request, it needs to go through a review process. At least two approvals are required before merging. During this stage, you may receive requests for revisions based on feedback from our developers.
- After approval, the ticket moves to the QA (Quality Assurance) team. The QA team checks the localization in the product environment to ensure that the text fits within the UI elements and does not break the user interface.
- If all checks are passed, your changes will be merged into the CloudBeaver repository.
- Getting started
- Create connection
- Connection network options
- Supported databases
-
Drivers management
- Database authentication methods
- Database navigator
- Properties editor
- Data editor
- SQL editor
-
Entity relation diagrams
- Cloud services
-
AI Smart assistance
- Data transfer
- General user guide
- Administration
- Server configuration
-
Server security and access configuration
- Authentication methods
- Access management
- Proxy configuration
-
Secret management
- Logs
-
Query manager
- Workspace location
- Command line parameters
-
Session manager
- Deployment options
- CloudBeaver Editions
- FAQ
- Development