mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	i18n: Translate locale section
This commit is contained in:
		| @@ -1,14 +1,15 @@ | |||||||
| import OptionsWidget from "../options_widget.js"; | import OptionsWidget from "../options_widget.js"; | ||||||
| import server from "../../../../services/server.js"; | import server from "../../../../services/server.js"; | ||||||
| import utils from "../../../../services/utils.js"; | import utils from "../../../../services/utils.js"; | ||||||
|  | import { t } from "../../../../services/i18n.js"; | ||||||
|  |  | ||||||
| const TPL = ` | const TPL = ` | ||||||
| <div class="options-section"> | <div class="options-section"> | ||||||
|     <h4>Localization</h4> |     <h4>${t("i18n.title")}</h4> | ||||||
|  |  | ||||||
|     <div class="form-group row"> |     <div class="form-group row"> | ||||||
|         <div class="col-6"> |         <div class="col-6"> | ||||||
|             <label>Language</label> |             <label>${t("i18n.language")}</label> | ||||||
|             <select class="locale-select form-control"></select> |             <select class="locale-select form-control"></select> | ||||||
|         </div> |         </div> | ||||||
|     </div> |     </div> | ||||||
|   | |||||||
| @@ -536,7 +536,6 @@ | |||||||
|     "delete_success": "Attachment '{{title}}' has been deleted.", |     "delete_success": "Attachment '{{title}}' has been deleted.", | ||||||
|     "convert_confirm": "Are you sure you want to convert attachment '{{title}}' into a separate note?", |     "convert_confirm": "Are you sure you want to convert attachment '{{title}}' into a separate note?", | ||||||
|     "convert_success": "Attachment '{{title}}' has been converted to note.", |     "convert_success": "Attachment '{{title}}' has been converted to note.", | ||||||
|         "rename_attachment": "Rename attachment", |  | ||||||
|     "enter_new_name": "Please enter new attachment's name" |     "enter_new_name": "Please enter new attachment's name" | ||||||
|   }, |   }, | ||||||
|   "calendar": { |   "calendar": { | ||||||
| @@ -1115,5 +1114,9 @@ | |||||||
|     "title": "Automatic Read-Only Size", |     "title": "Automatic Read-Only Size", | ||||||
|     "description": "Automatic read-only note size is the size after which notes will be displayed in a read-only mode (for performance reasons).", |     "description": "Automatic read-only note size is the size after which notes will be displayed in a read-only mode (for performance reasons).", | ||||||
|     "label": "Automatic read-only size (text notes)" |     "label": "Automatic read-only size (text notes)" | ||||||
|  |   }, | ||||||
|  |   "i18n": { | ||||||
|  |     "title": "Localization", | ||||||
|  |     "language": "Language" | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user