Skip to content

Modular logistics and supply chain operating system (LSOS)

fixed some typo errors on templates and translation file

Munkh-erdene Damdinbazar0984af400abe
diff --git a/console/app/templates/console/admin/notifications.hbs b/console/app/templates/console/admin/notifications.hbs
index c6dd48c6..776358e1 100644
--- a/console/app/templates/console/admin/notifications.hbs
+++ b/console/app/templates/console/admin/notifications.hbs
@@ -1,5 +1,5 @@
{{page-title "Notifications"}}
-<Layout::Section::Header @title={{t "console.admin.notification.title"}}>
+<Layout::Section::Header @title={{t "console.admin.notifications.title"}}>
<Button @type="primary" @size="sm" @icon="save" @text={{t "common.save-button-text"}} @onClick={{this.saveSettings}} @disabled={{this.isLoading}} @isLoading={{this.isLoading}} />
</Layout::Section::Header>
@@ -7,7 +7,7 @@
<div class="container mx-auto h-screen" {{increase-height-by 1200}}>
<div class="max-w-3xl my-10 mx-auto space-y-4">
{{#each-in this.groupedNotifications as |groupName notifications|}}
- <ContentPanel @title={{concat (smart-humanize groupName) (t "console.admin.notification.notification-settings") }} @open={{true}} @pad={{true}} @panelBodyClass="bg-white dark:bg-gray-800">
+ <ContentPanel @title={{concat (smart-humanize groupName) (t "console.admin.notifications.notification-settings") }} @open={{true}} @pad={{true}} @panelBodyClass="bg-white dark:bg-gray-800">
{{#each notifications as |notification|}}
<InputGroup @name={{notification.name}} @helpText={{notification.description}}>
<div class="fleetbase-model-select fleetbase-power-select ember-model-select">
diff --git a/console/app/templates/console/notifications.hbs b/console/app/templates/console/notifications.hbs
index 4411f2f0..75b67704 100644
--- a/console/app/templates/console/notifications.hbs
+++ b/console/app/templates/console/notifications.hbs
@@ -1,4 +1,4 @@
-<Layout::Section::Header @title="Notifications">
+<Layout::Section::Header @title={{t "common.notifications"}}>
<Button @icon="check-square" @type="default" @text={{t "console.notifications.select-all"}} {{on "click" this.selectAll}} class="mr-2" />
<Button @icon="envelope" @type="primary" @text={{t "console.notifications.mark-as-read"}} {{on "click" this.read}} class="mr-2" />
<Button @icon="trash" @type="danger" @text={{t "common.delete"}} {{on "click" this.delete}} />
@@ -26,7 +26,7 @@
<h1 class="text-sm font-semibold antialiased leading-4">{{notification.data.subject}}</h1>
<div class="text-xs antialiased text-gray-900 dark:text-gray-200">- {{notification.data.message}}</div>
</div>
- <div class="text-gray-300 text-xs antialiased mt-1">Received: {{notification.createdAgo}}</div>
+ <div class="text-gray-300 text-xs antialiased mt-1">{{t "console.notifications.received"}} {{notification.createdAgo}}</div>
</div>
</a>
<div>
diff --git a/console/app/templates/install.hbs b/console/app/templates/install.hbs
index c106891b..8f907141 100644
--- a/console/app/templates/install.hbs
+++ b/console/app/templates/install.hbs
@@ -3,7 +3,7 @@
<div class="border border-black bg-gray-900 shadow-md rounded-md p-5 mt-12">
<div class="w-full flex-col items-center justify-center text-center mb-6">
<img src="/images/icon.png" alt={{concat (t "app.name") " Install"}} class="w-12 h-12 mx-auto" width="48" height="48" />
- <h3 class="mt-2 text-gray-50 font-bold">{{t "app.name"}} Installer</h3>
+ <h3 class="mt-2 text-gray-50 font-bold">{{t "app.name"}} {{t "install.installer-header"}}</h3>
</div>
<div class="space-y-4 mb-5">
{{#each this.steps as |step|}}
@@ -24,10 +24,10 @@
{{#if this.error}}
<div class="flex items-center border border-red-900 bg-red-800 text-red-100 px-4 py-1.5 rounded-lg mb-3 shadow-md">
<FaIcon @icon="triangle-exclamation" class="text-red-100 mr-2" />
- <span>{{t "onboard.install.failed-message-sent"}}</span>
+ <span>{{t "install.failed-message-sent"}}</span>
</div>
{{/if}}
- <Button @type="primary" @icon="play" @size="lg" @text={{if this.error (t "onboard.install.retry-install") (t "onboard.install.start-install") }} @wrapperClass="flex-1" class="w-full" @onClick={{this.startInstall}} @isLoading={{this.install.isRunning}} @disabled={{this.install.isRunning}} />
+ <Button @type="primary" @icon="play" @size="lg" @text={{if this.error (t "install.retry-install") (t "install.start-install") }} @wrapperClass="flex-1" class="w-full" @onClick={{this.startInstall}} @isLoading={{this.install.isRunning}} @disabled={{this.install.isRunning}} />
</div>
</div>
</div>
diff --git a/console/app/templates/onboard/index.hbs b/console/app/templates/onboard/index.hbs
index 21e37fbb..999ee53e 100644
--- a/console/app/templates/onboard/index.hbs
+++ b/console/app/templates/onboard/index.hbs
@@ -20,8 +20,8 @@
{{#if this.error}}
<InfoBlock @icon="exclamation-triangle" @text={{this.error}} class="mb-6 px-3 py-2 bg-red-300 text-red-900" @textClass="text-red-900" />
{{/if}}
- <InputGroup @name={{t "common.full-name"}} @value={{this.name}} @helpText={{t "onboard.index.fullname"}} @inputClass="input-lg" />
- <InputGroup @name={{t "onboard.index.your-email"}} @type="email" @value={{this.email}} @helpText={{t "onboard.index.email"}} @inputClass="input-lg" />
+ <InputGroup @name={{t "onboard.index.full-name"}} @value={{this.name}} @helpText={{t "onboard.index.full-name"}} @inputClass="input-lg" />
+ <InputGroup @name={{t "onboard.index.your-email"}} @type="email" @value={{this.email}} @helpText={{t "onboard.index.your-email"}} @inputClass="input-lg" />
<InputGroup @name={{t "common.phone"}} @helpText={{t "onboard.index.phone"}}>
<PhoneInput @onInput={{fn (mut this.phone)}} class="form-input input-lg w-full" />
</InputGroup>
diff --git a/console/translations/en-us.yaml b/console/translations/en-us.yaml
index d8d63320..d94a05d5 100644
--- a/console/translations/en-us.yaml
+++ b/console/translations/en-us.yaml
@@ -1,6 +1,5 @@
app:
name: Fleetbase
-
terms:
new: New
sort: Sort
@@ -137,10 +136,9 @@ console:
total-users: Total Users
total-organizations: Total Organizations
total-transactions: Total Transactions
- notification:
+ notifications:
title: Notifications
- notification-settings: Notification Settings
-
+ notification-settings: Notification Settings
settings:
index:
title: Organization Settings
@@ -160,8 +158,11 @@ console:
title: Extensions are coming soon!
message: Please check back in the upcoming versions as we prepare to launch the Extensions repository and marketplace.
notifications:
- select-all:
- mark-as-read:
+ select-all: Select All
+ mark-as-read: Mark as Read
+ received: >-
+ Received:
+ message: No notifications to display.
invite:
for-users:
invitation-message: You've been invited to join {companyName}
@@ -173,8 +174,8 @@ onboard:
title: Create your account
welcome-title: <strong>Welcome to {companyName}!</strong><br />
welcome-text: Complete the details required below to get started.
- fullname: Your full name.
- email: Your email address.
+ full-name: Your full name.
+ your-email: Your email address.
phone: Your phone number.
organization-name: Your organization name, all your services and resources will be managed under this organization, later you can create as many organizations as you want or need.
password: Your password, make sure it's a good one.
@@ -190,12 +191,11 @@ onboard:
alternative-choice: Use alternaitve options below to verify your account.
resent-button-text: Resend Email
sms-button-text: Send by SMS
-
install:
+ installer-header: Installer
failed-message-sent: The install failed! Click the button below to retry the install.
retry-install: Retry Install
start-install: Start Install
-
layout:
header:
menus: