translation keys

ref #69
This commit is contained in:
2021-02-18 18:09:57 +01:00
parent 505ca6a58e
commit a588bc4631
29 changed files with 334 additions and 264 deletions

View File

@@ -47,7 +47,7 @@
if (processed_last_submit === true) {
processed_last_submit = false;
const toast = Toastify({
text: "User is being added...",
text: $_("user-is-being-added"),
duration: -1,
}).showToast();
UserService.userControllerPost({
@@ -67,19 +67,16 @@
modal_open = false;
//
Toastify({
text: "User added",
text: $_("user-added"),
duration: 500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();
current_users.push(result);
current_users = current_users;
})
.catch((err) => {
//
})
.catch((err) => {})
.finally(() => {
processed_last_submit = true;
//
toast.hideToast();
});
}
@@ -125,11 +122,11 @@
</div>
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
<h3 class="text-lg leading-6 font-medium text-gray-900">
Create a new User
{$_('create-a-new-user')}
</h3>
<div class="mt-2 mb-6">
<p class="text-sm text-gray-500">
Please provide the required information to add a new user.
{$_('please-provide-the-required-information-to-add-a-new-user')}
</p>
</div>
<div class="grid grid-cols-6 gap-6">