Blame
bf48e4 | Hargata Softworks | 2024-02-04 17:46:15 | 1 | # Translations |
2 | ||||
3 | LubeLogger supports UI Translations for ~95% of UI elements. | |||
4 | ||||
5 | The following are not covered by translations: | |||
6 | - Toasts(messages that pop up on the top right) | |||
7 | - Sweetalert prompts(confirm delete dialogs, etc) | |||
8 | - About section | |||
9 | ||||
10 | ## Where to get translations | |||
36cf98 | Hargata Softworks | 2024-02-04 20:24:41 | 11 | Translations can be found at [this repository](https://github.com/hargata/lubelog_translations/) |
bf48e4 | Hargata Softworks | 2024-02-04 17:46:15 | 12 | |
13 | 1. To upload a translation file, login as the root user. | |||
14 | 2. Navigate to "Settings" | |||
15 | 3. Click "Upload" under the "Manage Languages" section | |||
2b40a9 | DESKTOP-T0O5CDB\DESK-555BD | 2024-09-20 15:19:12 | 16 | ![](/Misc/Translations/a/image-1726779630684.png) |
bf48e4 | Hargata Softworks | 2024-02-04 17:46:15 | 17 | |
18 | 4. Select the language file you wish to upload | |||
19 | 5. The page should refresh | |||
20 | 6. Select the language file from the dropdown to set it as your default language. | |||
21 | ||||
22 | ## Creating your own translation | |||
d7bebf | Hargata Softworks | 2024-02-04 17:56:10 | 23 | 1. Download the [latest en_US.json](https://github.com/hargata/lubelog/blob/main/wwwroot/defaults/en_US.json) file from the GitHub Repository for LubeLogger. |
da3895 | Hargata Softworks | 2024-02-04 17:47:54 | 24 | 2. Rename this file, en_US is a reserved name. |
25 | 3. Use a JSON pretty-printer to make it human-readable | |||
2b40a9 | DESKTOP-T0O5CDB\DESK-555BD | 2024-09-20 15:19:12 | 26 | ![](/Misc/Translations/a/image-1726779638633.png) |
bf48e4 | Hargata Softworks | 2024-02-04 17:46:15 | 27 | |
28 | 3. The objects to the left of the ":" are the translation keys, DO NOT modify these. | |||
29 | 4. The objects to the right of the ":" are the translation values(shown in green), these are what you want to translate. | |||
30 | 5. To test out your translation, simply upload it to your LubeLogger instance and test it out. | |||
da3895 | Hargata Softworks | 2024-02-04 17:47:54 | 31 | |
bc8566 | Hargata Softworks | 2024-02-07 16:33:19 | 32 | ## Contribute |
da3895 | Hargata Softworks | 2024-02-04 17:47:54 | 33 | Follow the instructions outlined in the [official repository](https://github.com/hargata/lubelog_translations/) |
bc8566 | Hargata Softworks | 2024-02-07 16:33:19 | 34 | |
35 | Translation efforts are coordinated via [this thread](https://github.com/hargata/lubelog/discussions/240) |