diff --git a/config/config-base.json b/config/config-base.json index a143a0e..c2341fd 100644 --- a/config/config-base.json +++ b/config/config-base.json @@ -49,6 +49,17 @@ "name": "General", "description": "Settings related to the UI and program functionality." }, + "language": { + "name": "Language", + "required": false, + "requires_restart": true, + "type": "select", + "options": [ + "en-us" + ], + "value": "en-US", + "description": "UI Language. Currently only implemented for account creation form. Submit a PR on github if you'd like to translate." + }, "theme": { "name": "Default Look", "required": false, diff --git a/data/lang/form/en-us.json b/data/lang/form/en-us.json new file mode 100644 index 0000000..1d0ab47 --- /dev/null +++ b/data/lang/form/en-us.json @@ -0,0 +1,39 @@ +{ + "meta": { + "name": "English (US)" + }, + "strings": { + "pageTitle": "Create Jellyfin Account", + "createAccountHeader": "Create Account", + "accountDetails": "Details", + "emailAddress": "Email", + "username": "Username", + "password": "Password", + "createAccountButton": "Create Account", + "passwordRequirementsHeader": "Password Requirements", + "successHeader": "Success!", + "successContinueButton": "Continue", + "validationStrings": { + "length": { + "singular": "Must have at least {n} character", + "plural": "Must have a least {n} characters" + }, + "uppercase": { + "singular": "Must have at least {n} uppercase character", + "plural": "Must have at least {n} uppercase characters" + }, + "lowercase": { + "singular": "Must have at least {n} lowercase character", + "plural": "Must have at least {n} lowercase characters" + }, + "number": { + "singular": "Must have at least {n} number", + "plural": "Must have at least {n} numbers" + }, + "special": { + "singular": "Must have at least {n} special character", + "plural": "Must have at least {n} special characters" + } + } + } +} diff --git a/data/templates/form-base.html b/data/templates/form-base.html index 087ad69..5569535 100644 --- a/data/templates/form-base.html +++ b/data/templates/form-base.html @@ -1,7 +1,8 @@ {{ define "form-base" }} {{ end }} diff --git a/data/templates/form.html b/data/templates/form.html index c1e87fe..1b2ed3b 100644 --- a/data/templates/form.html +++ b/data/templates/form.html @@ -41,27 +41,27 @@ margin-bottom: 5%; } -
{{ .helpMessage }}
{{ .contactMessage }}
@@ -69,26 +69,26 @@