Auto dictionaries is a package made to help automate the process of replacing static content in templates with dictionary items. By enabling Auto dictionaries translation setting. Auto dictionaries can now also translates newly created dictionary items.
Auto dictionaries is a Umbraco package made for v8+. Made to help automate the process of replacing static content in templates and partial views with dictionary items. It can be found on the under the "Translation" section and is an admin only tool. Not visible for user group "editors".
Auto Dictionaries uses a regular expression to find "static content" between HTML tags. When "static content" is found, it checks if the content matches any value in an existing dictionary item. If a match is found, you can choose to associate it with the existing dictionary. It will then insert the dictionary item. If no match is found, it will create a new dictionary item and insert it into the template. If the translation setting is enabled and correctly setup. The "static content" will be translated into all available langues that has been setup in Umbraco.
Default settings are:
"AutoDictionaries": {
Translate: false,
Translator: "DeepL",
ApiKey: "",
ApiEndpoint: "",
ApiRegion: "",
}
Translate
Determines if auto dictionaries should present the option to translate newly created dictionaries.Translator
Determines translator that will be used default isDeepL
. Available translatorDeepL
,MicrosoftTranslation
.ApiKey
If the translator needs a Api key.ApiEndpoint
(Microsoft Translation) Endpoint used for the translation.ApiRegion
(Microsoft Translation) Endpoint used for the translation.
Right now the services below are built in with Auto dictionaries. Thease are however not required in order to use the basic fucntions.
- Requires a DeepL Account and API Key
- Requires a microsoft azure account
- Translation subscription key
Azure documentation Create a Translator resource
If you would like to help me improve this package, feel free to create a pull request!
Login details:
- Email: admin@admin.com
- Password: password123
If you find any issues with the package feel free to raise a issue!