You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-09 04:22:45 +03:00
templates: translate a lot more stuff
This commit is contained in:
@@ -16,9 +16,9 @@ limitations under the License.
|
||||
|
||||
{% macro form_error_message(error) -%}
|
||||
{% if error.kind == "invalid_credentials" %}
|
||||
Invalid credentials
|
||||
{{ _("mas.errors.invalid_credentials") }}
|
||||
{% elif error.kind == "password_mismatch" %}
|
||||
Password fields don't match
|
||||
{{ _("mas.errors.password_mismatch") }}
|
||||
{% else %}
|
||||
{{ error.kind }}
|
||||
{% endif %}
|
||||
|
@@ -26,6 +26,7 @@ limitations under the License.
|
||||
<input name="{{ name }}"
|
||||
class="cpd-control"
|
||||
{% if state.errors is not empty %} data-invalid {% endif %}
|
||||
{% if state.value %} value="{{ state.value }}" {% endif %}
|
||||
type="{{ type }}"
|
||||
inputmode="{{ inputmode }}"
|
||||
{% if required %} required {% endif %}
|
||||
@@ -40,11 +41,11 @@ limitations under the License.
|
||||
{% if error.kind != "unspecified" %}
|
||||
<div class="text-sm text-critical">
|
||||
{% if error.kind == "required" %}
|
||||
This field is required
|
||||
{{ _("mas.errors.field_required") }}
|
||||
{% elif error.kind == "exists" and name == "username" %}
|
||||
This username is already taken
|
||||
{{ _("mas.errors.username_taken") }}
|
||||
{% elif error.kind == "policy" %}
|
||||
Denied by policy: {{ error.message }}
|
||||
{{ _("mas.errors.denied_policy", message=error.message) }}
|
||||
{% else %}
|
||||
{{ error.kind }}
|
||||
{% endif %}
|
||||
|
@@ -15,7 +15,6 @@ limitations under the License.
|
||||
#}
|
||||
|
||||
{% macro top() %}
|
||||
<!-- {{ lang }} -->
|
||||
<nav class="container mx-auto py-2 flex-initial flex items-center px-8" role="navigation" aria-label="main navigation">
|
||||
<div class="flex-1"></div>
|
||||
|
||||
|
Reference in New Issue
Block a user