Skip to content

Modular logistics and supply chain operating system (LSOS)

created more translation keys

mm3ddd3f779969c3d5
diff --git a/console/app/templates/console/account.hbs b/console/app/templates/console/account.hbs
index 1340ac5c..299b03cc 100644
--- a/console/app/templates/console/account.hbs
+++ b/console/app/templates/console/account.hbs
@@ -1,6 +1,6 @@
{{page-title "Account"}}
<EmberWormhole @to="sidebar-menu-items">
- <Layout::Sidebar::Panel @open={{true}} @title="Account">
+ <Layout::Sidebar::Panel @open={{true}} @title={{t "common.account"}}>
<Layout::Sidebar::Item @route="console.account.index" @icon="user">Profile</Layout::Sidebar::Item>
{{#each this.universe.accountMenuItems as |menuItem|}}
<Layout::Sidebar::Item @onClick={{fn this.universe.transitionMenuItem "console.account.virtual" menuItem}} @item={{menuItem}} @icon={{menuItem.icon}}>{{menuItem.title}}</Layout::Sidebar::Item>
diff --git a/console/app/templates/console/account/index.hbs b/console/app/templates/console/account/index.hbs
index 472e6836..3f8a07d9 100644
--- a/console/app/templates/console/account/index.hbs
+++ b/console/app/templates/console/account/index.hbs
@@ -1,25 +1,25 @@
-<Layout::Section::Header @title="Profile" />
+<Layout::Section::Header @title={{t "common.profile"}} />
<Layout::Section::Body class="overflow-y-scroll h-full">
<div class="container mx-auto h-screen" {{increase-height-by 500}}>
<div class="max-w-3xl my-10 mx-auto">
- <ContentPanel @title="Your Profile" @open={{true}} @pad={{true}} @panelBodyClass="bg-white dark:bg-gray-800">
+ <ContentPanel @title={{t "common.your-profile"}} @open={{true}} @pad={{true}} @panelBodyClass="bg-white dark:bg-gray-800">
<form class="flex flex-col md:flex-row" {{on "submit" this.saveProfile}}>
<div class="w-32 flex flex-col justify-center mb-6 mr-6">
<Image src={{this.user.avatar_url}} @fallbackSrc={{config "defaultValues.userImage"}} alt={{this.user.name}} class="w-32 h-32 rounded-md" />
- <FileUpload @name="photos" @accept="image/*" @onFileAdded={{this.uploadNewPhoto}} @labelClass="flex flex-row items-center justify-center" as |queue|>
+ <FileUpload @name={{t "console.account.index.photos"}} @accept="image/*" @onFileAdded={{this.uploadNewPhoto}} @labelClass="flex flex-row items-center justify-center" as |queue|>
<a tabindex={{0}} class="flex items-center px-0 mt-2 text-xs no-underline truncate btn btn-sm btn-default" disabled={{queue.files.length}}>
{{#if queue.files.length}}
<div class="mr-1.5">
<Spinner />
</div>
<span>
- Uploading...
+ {{t "common.uploading"}}
</span>
{{else}}
<FaIcon @icon="image" class="mr-1.5" />
- <span>
- Upload new
+ <span>
+ {{t "console.account.index.upload-new"}}
</span>
{{/if}}
</a>
@@ -27,15 +27,15 @@
</div>
<div class="flex-1">
<div class="grid grid-cols-1 lg:grid-cols-2 gap-2 text-xs dark:text-gray-100">
- <InputGroup @name="Name" @value={{this.user.name}} />
- <InputGroup @name="Email" @type="email" @value={{this.user.email}} />
- <InputGroup @name="Your phone number" @helpText="Your phone number.">
+ <InputGroup @name={{t "common.name"}} @value={{this.user.name}} />
+ <InputGroup @name={{t "common.email"}} @type="email" @value={{this.user.email}} />
+ <InputGroup @name={{t "common.phone"}} @helpText={{t "console.account.index.phone"}}>
<PhoneInput @value={{this.user.phone}} @onInput={{fn (mut this.user.phone)}} class="form-input input-lg w-full" />
</InputGroup>
- <InputGroup @name="Date of Birth" @type="date" @value={{this.user.date_of_birth}} />
+ <InputGroup @name={{t "common.date-of-birth"}} @type="date" @value={{this.user.date_of_birth}} />
</div>
<div class="mt-3 flex items-center justify-end">
- <Button @buttonType="submit" @type="primary" @size="lg" @icon="save" @text="Save Changes" @onClick={{this.saveProfile}} @isLoading={{this.isLoading}} />
+ <Button @buttonType="submit" @type="primary" @size="lg" @icon="save" @text={{t "common.save-button-text"}} @onClick={{this.saveProfile}} @isLoading={{this.isLoading}} />
</div>
</div>
</form>
diff --git a/console/app/templates/console/admin.hbs b/console/app/templates/console/admin.hbs
index ac53ff15..ddf03f7e 100644
--- a/console/app/templates/console/admin.hbs
+++ b/console/app/templates/console/admin.hbs
@@ -1,9 +1,9 @@
{{page-title "Admin"}}
<EmberWormhole @to="sidebar-menu-items">
- <Layout::Sidebar::Item @route="console.admin.index" @icon="rectangle-list">Overview</Layout::Sidebar::Item>
- <Layout::Sidebar::Item @route="console.admin.branding" @icon="palette">Branding</Layout::Sidebar::Item>
- <Layout::Sidebar::Item @route="console.admin.notifications" @icon="bell">Notifications</Layout::Sidebar::Item>
+ <Layout::Sidebar::Item @route="console.admin.index" @icon="rectangle-list">{{t "common.overview"}}</Layout::Sidebar::Item>
+ <Layout::Sidebar::Item @route="console.admin.branding" @icon="palette">{{t "common.branding"}}</Layout::Sidebar::Item>
+ <Layout::Sidebar::Item @route="console.admin.notifications" @icon="bell">{{t "common.notifications"}}</Layout::Sidebar::Item>
{{#each this.universe.adminMenuItems as |menuItem|}}
<Layout::Sidebar::Item @onClick={{fn this.universe.transitionMenuItem "console.admin.virtual" menuItem}} @item={{menuItem}} @icon={{menuItem.icon}}>{{menuItem.title}}</Layout::Sidebar::Item>
{{/each}}
@@ -15,12 +15,12 @@
</Layout::Sidebar::Panel>
{{/each}}
<Layout::Sidebar::Panel @open={{true}} @title="System Config">
- <Layout::Sidebar::Item @route="console.admin.config.services" @icon="bell-concierge">Services</Layout::Sidebar::Item>
- <Layout::Sidebar::Item @route="console.admin.config.mail" @icon="envelope">Mail</Layout::Sidebar::Item>
- <Layout::Sidebar::Item @route="console.admin.config.filesystem" @icon="hard-drive">Filesystem</Layout::Sidebar::Item>
- <Layout::Sidebar::Item @route="console.admin.config.queue" @icon="layer-group">Queue</Layout::Sidebar::Item>
- <Layout::Sidebar::Item @route="console.admin.config.socket" @icon="plug">Socket</Layout::Sidebar::Item>
- <Layout::Sidebar::Item @route="console.admin.config.notification-channels" @icon="tower-broadcast">Notification Channels</Layout::Sidebar::Item>
+ <Layout::Sidebar::Item @route="console.admin.config.services" @icon="bell-concierge">{{t "common.services"}}</Layout::Sidebar::Item>
+ <Layout::Sidebar::Item @route="console.admin.config.mail" @icon="envelope">{{t "common.mail"}}</Layout::Sidebar::Item>
+ <Layout::Sidebar::Item @route="console.admin.config.filesystem" @icon="hard-drive">{{t "common.filesystem"}}</Layout::Sidebar::Item>
+ <Layout::Sidebar::Item @route="console.admin.config.queue" @icon="layer-group">{{t "common.queue"}}</Layout::Sidebar::Item>
+ <Layout::Sidebar::Item @route="console.admin.config.socket" @icon="plug">{{t "common.socket"}}</Layout::Sidebar::Item>
+ <Layout::Sidebar::Item @route="console.admin.config.notification-channels" @icon="tower-broadcast">{{t "common.notification-channels"}}</Layout::Sidebar::Item>
</Layout::Sidebar::Panel>
</EmberWormhole>
diff --git a/console/app/templates/console/admin/branding.hbs b/console/app/templates/console/admin/branding.hbs
index 5eaa022d..aa205394 100644
--- a/console/app/templates/console/admin/branding.hbs
+++ b/console/app/templates/console/admin/branding.hbs
@@ -1,62 +1,62 @@
{{page-title "Branding"}}
-<Layout::Section::Header @title="Branding">
- <Button @type="primary" @size="sm" @icon="save" @text="Save Changes" @onClick={{this.save}} @disabled={{this.isLoading}} @isLoading={{this.isLoading}} />
+<Layout::Section::Header @title={{t "console.admin.branding.title"}}>
+ <Button @type="primary" @size="sm" @icon="save" @text={{t "common.save-button-text"}} @onClick={{this.save}} @disabled={{this.isLoading}} @isLoading={{this.isLoading}} />
</Layout::Section::Header>
<Layout::Section::Body class="overflow-y-scroll h-full">
<div class="container mx-auto h-screen" {{increase-height-by 300}}>
<div class="max-w-3xl my-10 mx-auto space-y-">
- <ContentPanel @title="Branding" @open={{true}} @pad={{true}} @panelBodyClass="bg-white dark:bg-gray-800">
+ <ContentPanel @title={{t "console.admin.branding.title"}} @open={{true}} @pad={{true}} @panelBodyClass="bg-white dark:bg-gray-800">
<form class="flex flex-col" {{on "submit" this.save}}>
<div class="input-group">
- <label>Icon</label>
+ <label>{{t "console.admin.branding.icon-text"}}</label>
<div class="flex flex-row items-center space-x-2">
<Image src={{@model.icon_url}} @fallbackSrc="/images/icon.png" alt={{t "app.name"}} width="32" height="32" class="w-8 h-8 shadow-sm" />
- <FileUpload @name="icon" @accept="image/*" @onFileAdded={{this.uploadIcon}} @labelClass="flex flex-row items-center justify-center mb-0i" as |queue|>
+ <FileUpload @name={{t "console.admin.branding.icon-text"}} @accept="image/*" @onFileAdded={{this.uploadIcon}} @labelClass="flex flex-row items-center justify-center mb-0i" as |queue|>
<a tabindex={{0}} class="flex items-center px-0 text-xs no-underline truncate btn btn-sm btn-default" disabled={{queue.files.length}}>
{{#if queue.files.length}}
<div class="mr-1.5">
<Spinner />
</div>
<span>
- Uploading...
+ {{t "common.uploading"}}
</span>
{{else}}
<FaIcon @icon="image" class="mr-1.5" />
<span>
- Upload new
+ {{t "console.admin.branding.upload-new"}}
</span>
{{/if}}
</a>
</FileUpload>
</div>
- <a href="javascript:;" class="text-danger text-xs mt-1" {{on "click" this.unsetIcon}}>Reset to default</a>
+ <a href="javascript:;" class="text-danger text-xs mt-1" {{on "click" this.unsetIcon}}>{{t "console.admin.branding.reset-default"}}</a>
</div>
<div class="input-group">
- <label>Logo</label>
+ <label>{{t "console.admin.branding.logo-text"}}</label>
<div class="flex flex-row items-center space-x-2">
<Image src={{@model.logo_url}} @fallbackSrc="/images/fleetbase-logo-svg.svg" alt={{t "app.name"}} width="160" height="56" class="w-40 h-14" />
- <FileUpload @name="logo" @accept="image/*" @onFileAdded={{this.uploadLogo}} @labelClass="flex flex-row items-center justify-center mb-0i" as |queue|>
+ <FileUpload @name={{t "console.admin.branding.logo-text"}} @accept="image/*" @onFileAdded={{this.uploadLogo}} @labelClass="flex flex-row items-center justify-center mb-0i" as |queue|>
<a tabindex={{0}} class="flex items-center px-0 text-xs no-underline truncate btn btn-sm btn-default" disabled={{queue.files.length}}>
{{#if queue.files.length}}
<div class="mr-1.5">
<Spinner />
</div>
<span>
- Uploading...
+ {{t "common.uploading"}}
</span>
{{else}}
<FaIcon @icon="image" class="mr-1.5" />
<span>
- Upload new
+ {{t "console.admin.branding.upload-new"}}
</span>
{{/if}}
</a>
</FileUpload>
</div>
- <a href="javascript:;" class="text-danger text-xs mt-1" {{on "click" this.unsetLogo}}>Reset to default</a>
+ <a href="javascript:;" class="text-danger text-xs mt-1" {{on "click" this.unsetLogo}}>{{t "console.admin.branding.reset-default"}}</a>
</div>
- <InputGroup @name="Default Theme">
+ <InputGroup @name={{t "console.admin.branding.theme"}}>
<Select @value={{@model.default_theme}} @onSelect={{this.setTheme}} @options={{this.themeOptions}} />
</InputGroup>
</form>
diff --git a/console/app/templates/console/admin/config/database.hbs b/console/app/templates/console/admin/config/database.hbs
index 1326ac5f..1f3fa445 100644
--- a/console/app/templates/console/admin/config/database.hbs
+++ b/console/app/templates/console/admin/config/database.hbs
@@ -1,5 +1,5 @@
{{page-title "Database Configuration"}}
-<Layout::Section::Header @title="Database Configuration" />
+<Layout::Section::Header @title={{t "console.admin.config.database.title"}} />
<Layout::Section::Body class="overflow-y-scroll h-full">
<div class="container mx-auto h-screen" {{increase-height-by 800}}>
diff --git a/console/app/templates/console/admin/config/filesystem.hbs b/console/app/templates/console/admin/config/filesystem.hbs
index b47e1a70..b2c5ce1d 100644
--- a/console/app/templates/console/admin/config/filesystem.hbs
+++ b/console/app/templates/console/admin/config/filesystem.hbs
@@ -1,5 +1,5 @@
{{page-title "Filesystem Configuration"}}
-<Layout::Section::Header @title="Filesystem Configuration" />
+<Layout::Section::Header @title={{t "console.admin.config.filesystem.title"}} />
<Layout::Section::Body class="overflow-y-scroll h-full">
<div class="container mx-auto h-screen" {{increase-height-by 800}}>
diff --git a/console/app/templates/console/admin/config/mail.hbs b/console/app/templates/console/admin/config/mail.hbs
index 0ab0d574..e260f0ae 100644
--- a/console/app/templates/console/admin/config/mail.hbs
+++ b/console/app/templates/console/admin/config/mail.hbs
@@ -1,5 +1,5 @@
{{page-title "Mail Configuration"}}
-<Layout::Section::Header @title="Mail Configuration" />
+<Layout::Section::Header @title={{t "console.admin.config.mail.title"}} />
<Layout::Section::Body class="overflow-y-scroll h-full">
<div class="container mx-auto h-screen" {{increase-height-by 800}}>
diff --git a/console/app/templates/console/admin/config/notification-channels.hbs b/console/app/templates/console/admin/config/notification-channels.hbs
index 3df85758..724feefc 100644
--- a/console/app/templates/console/admin/config/notification-channels.hbs
+++ b/console/app/templates/console/admin/config/notification-channels.hbs
@@ -1,5 +1,5 @@
{{page-title "Notification Channels Configuration"}}
-<Layout::Section::Header @title="Notification Channels Configuration" />
+<Layout::Section::Header @title={{t "console.admin.config.notification-channels.title"}} />
<Layout::Section::Body class="overflow-y-scroll h-full">
<div class="container mx-auto h-screen" {{increase-height-by 800}}>
diff --git a/console/app/templates/console/admin/config/queue.hbs b/console/app/templates/console/admin/config/queue.hbs
index f7454b1a..ed6104b1 100644
--- a/console/app/templates/console/admin/config/queue.hbs
+++ b/console/app/templates/console/admin/config/queue.hbs
@@ -1,5 +1,5 @@
{{page-title "Queue Configuration"}}
-<Layout::Section::Header @title="Queue Configuration" />
+<Layout::Section::Header @title={{t "console.admin.config.queue.title"}} />
<Layout::Section::Body class="overflow-y-scroll h-full">
<div class="container mx-auto h-screen" {{increase-height-by 800}}>
diff --git a/console/app/templates/console/admin/config/services.hbs b/console/app/templates/console/admin/config/services.hbs
index 4e5a1645..b40aa740 100644
--- a/console/app/templates/console/admin/config/services.hbs
+++ b/console/app/templates/console/admin/config/services.hbs
@@ -1,5 +1,5 @@
{{page-title "Services Configuration"}}
-<Layout::Section::Header @title="Services Configuration" />
+<Layout::Section::Header @title={{t "console.admin.config.services.title"}} />
<Layout::Section::Body class="overflow-y-scroll h-full">
<div class="container mx-auto h-screen" {{increase-height-by 900}}>
diff --git a/console/app/templates/console/admin/config/socket.hbs b/console/app/templates/console/admin/config/socket.hbs
index 86008a71..39b2b9b2 100644
--- a/console/app/templates/console/admin/config/socket.hbs
+++ b/console/app/templates/console/admin/config/socket.hbs
@@ -1,5 +1,5 @@
{{page-title "Socket Configuration"}}
-<Layout::Section::Header @title="Socket Configuration" />
+<Layout::Section::Header @title={{t "console.admin.config.socket.title"}} />
<Layout::Section::Body class="overflow-y-scroll h-full">
<div class="container mx-auto h-screen" {{increase-height-by 900}}>
diff --git a/console/app/templates/console/admin/index.hbs b/console/app/templates/console/admin/index.hbs
index 8109b2ab..ac09a850 100644
--- a/console/app/templates/console/admin/index.hbs
+++ b/console/app/templates/console/admin/index.hbs
@@ -1,13 +1,13 @@
{{page-title "Overview"}}
-<Layout::Section::Header @title="Overview" />
+<Layout::Section::Header @title={{t "common.overview"}} />
<Layout::Section::Body class="overflow-y-scroll h-full">
<div class="container mx-auto h-screen" {{increase-height-by 800}}>
<div class="max-w-3xl my-10 mx-auto space-y-6">
<div class="grid grid-cols-3 xs:grid-cols-1 gap-4">
- <StatWidget @title="Total Users" @value={{@model.total_users}} />
- <StatWidget @title="Total Organizations" @value={{@model.total_organizations}} />
- <StatWidget @title="Total Transactions" @value={{@model.total_transactions}} />
+ <StatWidget @title={{t "console.admin.index.total-users"}} @value={{@model.total_users}} />
+ <StatWidget @title={{t "console.admin.index.total-organizations"}} @value={{@model.total_organizations}} />
+ <StatWidget @title={{t "console.admin.index.total-transactions"}} @value={{@model.total_transactions}} />
</div>
</div>
</div>
diff --git a/console/app/templates/console/admin/notifications.hbs b/console/app/templates/console/admin/notifications.hbs
index bcb49f92..48812507 100644
--- a/console/app/templates/console/admin/notifications.hbs
+++ b/console/app/templates/console/admin/notifications.hbs
@@ -1,13 +1,13 @@
{{page-title "Notifications"}}
-<Layout::Section::Header @title="Notifications">
- <Button @type="primary" @size="sm" @icon="save" @text="Save Changes" @onClick={{this.saveSettings}} @disabled={{this.isLoading}} @isLoading={{this.isLoading}} />
+<Layout::Section::Header @title={{t "console.admin.notification.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>
<Layout::Section::Body class="overflow-y-scroll h-full">
<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) " Notification Settings"}} @open={{true}} @pad={{true}} @panelBodyClass="bg-white dark:bg-gray-800">
+ <ContentPanel @title={{concat (smart-humanize groupName) {{t "console.admin.notification.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/extensions.hbs b/console/app/templates/console/extensions.hbs
index 5c1c5360..6d5436bb 100644
--- a/console/app/templates/console/extensions.hbs
+++ b/console/app/templates/console/extensions.hbs
@@ -3,9 +3,9 @@
<div class="container mx-auto h-screen space-y-4">
<div class="flex flex-col items-center justify-center pt-14 px-40">
<FaIcon @icon="shapes" @size="4x" class="mb-6 text-blue-500" />
- <h1 class="dark:text-gray-100 text-black text-4xl font-bold mb-4">Extensions are coming soon!</h1>
+ <h1 class="dark:text-gray-100 text-black text-4xl font-bold mb-4">{{t "console.extensions.title"}}</h1>
<p class="dark:text-gray-300 text-black text-lg">
- Please check back in the upcoming versions as we prepare to launch the Extensions repository and marketplace.
+ {{t "console.extensions.message"}}
</p>
</div>
</div>
diff --git a/console/app/templates/console/notifications.hbs b/console/app/templates/console/notifications.hbs
index dae3c940..4411f2f0 100644
--- a/console/app/templates/console/notifications.hbs
+++ b/console/app/templates/console/notifications.hbs
@@ -1,7 +1,7 @@
<Layout::Section::Header @title="Notifications">
- <Button @icon="check-square" @type="default" @text="Select All" {{on "click" this.selectAll}} class="mr-2" />
- <Button @icon="envelope" @type="primary" @text="Mark as Read" {{on "click" this.read}} class="mr-2" />
- <Button @icon="trash" @type="danger" @text="Delete" {{on "click" this.delete}} />
+ <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}} />
</Layout::Section::Header>
<Layout::Section::Body class="h-full w-full">
@@ -37,7 +37,7 @@
</div>
{{else}}
<div class="flex items-center justify-center h-full w-full">
- <p class="text-base text-gray-800 dark:text-gray-300 italic">No notifications to display.</p>
+ <p class="text-base text-gray-800 dark:text-gray-300 italic">{{t "console.notifications.message"}}</p>
</div>
{{/each}}
</div>
diff --git a/console/app/templates/console/settings.hbs b/console/app/templates/console/settings.hbs
index 39e5f2ec..8506c822 100644
--- a/console/app/templates/console/settings.hbs
+++ b/console/app/templates/console/settings.hbs
@@ -1,7 +1,7 @@
{{page-title "Settings"}}
<EmberWormhole @to="sidebar-menu-items">
- <Layout::Sidebar::Panel @open={{true}} @title="Settings">
- <Layout::Sidebar::Item @route="console.settings.index" @icon="cog">Organization</Layout::Sidebar::Item>
+ <Layout::Sidebar::Panel @open={{true}} @title={{t "common.settings"}}>
+ <Layout::Sidebar::Item @route="console.settings.index" @icon="cog">{{t "common.organization"}}</Layout::Sidebar::Item>
{{#each this.universe.settingsMenuItems as |menuItem|}}
<Layout::Sidebar::Item @onClick={{fn this.universe.transitionMenuItem "console.settings.virtual" menuItem}} @item={{menuItem}} @icon={{menuItem.icon}}>{{menuItem.title}}</Layout::Sidebar::Item>
{{/each}}
diff --git a/console/app/templates/console/settings/index.hbs b/console/app/templates/console/settings/index.hbs
index fe04e47d..d37a248f 100644
--- a/console/app/templates/console/settings/index.hbs
+++ b/console/app/templates/console/settings/index.hbs
@@ -1,40 +1,40 @@
-<Layout::Section::Header @title="Organization Settings" />
+<Layout::Section::Header @title={{t "console.settings.index.title"}} />
<Layout::Section::Body class="overflow-y-scroll h-full">
<div class="container mx-auto h-screen" {{increase-height-by 500}}>
<div class="max-w-3xl my-10 mx-auto space-y-6">
- <ContentPanel @title="Organization Settings" @open={{true}} @pad={{true}} @panelBodyClass="bg-white dark:bg-gray-800">
+ <ContentPanel @title={{t "console.settings.index.title"}} @open={{true}} @pad={{true}} @panelBodyClass="bg-white dark:bg-gray-800">
<form {{on "submit" this.saveSettings}}>
- <InputGroup @name="Organization name" @value={{@model.name}} />
- <InputGroup @name="Organization description" @value={{@model.description}} />
- <InputGroup @name="Organization phone number">
+ <InputGroup @name={{t "console.settings.index.organization-name"}} @value={{@model.name}} />
+ <InputGroup @name={{t "console.settings.index.organization-description"}} @value={{@model.description}} />
+ <InputGroup @name={{t "console.settings.index.organization-phone"}}>
<PhoneInput @value={{@model.phone}} @onInput={{fn (mut @model.phone)}} class="form-input w-full" />
</InputGroup>
- <InputGroup @name="Organization currency">
+ <InputGroup @name={{t "console.settings.index.organization-currency"}}>
<CurrencySelect @value={{@model.currency}} @onSelect={{fn (mut @model.currency)}} @triggerClass="w-full form-select" />
</InputGroup>
- <InputGroup @name="Organization ID" @value={{@model.public_id}} @disabled={{true}} />
+ <InputGroup @name={{t "console.settings.index.organization-id"}} @value={{@model.public_id}} @disabled={{true}} />
<div class="mt-3 flex items-center justify-end">
- <Button @buttonType="submit" @type="primary" @size="lg" @icon="save" @text="Save Changes" @isLoading={{this.isLoading}} />
+ <Button @buttonType="submit" @type="primary" @size="lg" @icon="save" @text="{{t "common.save-button-text"}}" @isLoading={{this.isLoading}} />
</div>
</form>
</ContentPanel>
- <ContentPanel @title="Organization Branding" @open={{true}} @pad={{true}} @panelBodyClass="bg-white dark:bg-gray-800">
- <InputGroup @name="Logo" @helpText="Logo for your organization.">
+ <ContentPanel @title={{t "console.settings.index.organization-branding"}} @open={{true}} @pad={{true}} @panelBodyClass="bg-white dark:bg-gray-800">
+ <InputGroup @name={{t "console.settings.index.logo"}} @helpText={{t "console.settings.index.logo-help-text"}}>
<div class="flex flex-row items-center">
<Image src={{@model.logo_url}} @fallbackSrc={{config "defaultValues.placeholderImage"}} alt={{concat @model.name " logo"}} class="h-20 w-64 border dark:border-gray-900 rounded-md mr-4" />
- <FileUpload @name="logo" @accept="image/*" @onFileAdded={{fn this.uploadFile "logo"}} as |queue|>
+ <FileUpload @name={{t "console.settings.index.logo"}} @accept="image/*" @onFileAdded={{fn this.uploadFile "logo"}} as |queue|>
<a tabindex={{0}} class="flex items-center px-0 mt-2 text-xs no-underline truncate btn btn-sm btn-default">
{{#if queue.files.length}}
<Spinner class="mr-1" />
<span>
- Uploading...
+ {{t "common.uploading"}}
</span>
{{else}}
<FaIcon @icon="image" class="mr-1" />
<span>
- Upload new logo
+ {{t "console.settings.index.upload-new-logo"}}
</span>
{{/if}}
</a>
@@ -42,20 +42,20 @@
</div>
</InputGroup>
- <InputGroup @name="Backdrop" @helpText="Optional banner or background image for your organization.">
+ <InputGroup @name={{t "console.settings.index.backdrop"}} @helpText={{t "console.settings.index.backdrop-help-text"}}>
<div class="flex flex-row items-center">
<Image src={{@model.backdrop_url}} @fallbackSrc={{config "defaultValues.placeholderImage"}} alt={{concat @model.name " backdrop"}} class="h-20 w-64 border dark:border-gray-900 rounded-md mr-4" />
- <FileUpload @name="backdrop" @accept="image/*" @onFileAdded={{fn this.uploadFile "backdrop"}} as |queue|>
+ <FileUpload @name={{t "console.settings.index.backdrop"}} @accept="image/*" @onFileAdded={{fn this.uploadFile "backdrop"}} as |queue|>
<a tabindex={{0}} class="flex items-center px-0 mt-2 text-xs no-underline truncate btn btn-sm btn-default">
{{#if queue.files.length}}
<Spinner class="mr-1" />
<span>
- Uploading...
+ {{t "common.uploading"}}
</span>
{{else}}
<FaIcon @icon="image" class="mr-1" />
<span>
- Upload new backdrop
+ {{t "console.settings.index.upload-new-backdrop"}}
</span>
{{/if}}
</a>
diff --git a/console/app/templates/invite/for-user.hbs b/console/app/templates/invite/for-user.hbs
index 9b441649..bb60b026 100644
--- a/console/app/templates/invite/for-user.hbs
+++ b/console/app/templates/invite/for-user.hbs
@@ -4,7 +4,7 @@
<div class="mb-8">
<img class="mx-auto h-12 w-auto" src={{@brand.icon_url}} alt={{t "app.name"}}>
<h2 class="mt-6 text-center text-lg font-extrabold text-gray-900 dark:text-white truncate">
- {{t "invite.for-users.invitation-message"}} {{@model.name}}
+ {{t "invite.for-users.invitation-message" [email protected]}}
</h2>
</div>
diff --git a/console/app/templates/onboard/index.hbs b/console/app/templates/onboard/index.hbs
index 050990bf..21e37fbb 100644
--- a/console/app/templates/onboard/index.hbs
+++ b/console/app/templates/onboard/index.hbs
@@ -2,7 +2,7 @@
<div class="mb-4">
<Image src={{@model.logo_url}} @fallbackSrc="/images/fleetbase-logo-svg.svg" alt={{t "app.name"}} width="160" height="56" class="w-40 h-14 mx-auto" />
<h2 class="text-center text-lg font-extrabold text-gray-900 dark:text-white truncate">
- Create your account
+ {{t "onboard.index.title"}}
</h2>
</div>
@@ -11,8 +11,8 @@
<FaIcon @icon="hand-spock" @size="lg" class="text-blue-900 mr-4" />
</div>
<p class="flex-1 text-sm text-blue-900 dark:text-blue-900">
- <strong>Welcome to {{t "app.name"}}!</strong><br />
- Complete the details required below to get started.
+ {{t "onboard.index.welcome-title" htnmlSafe=true companyName=(t "app.name")}}
+ {{t "onboard.index.welcome-text"}}
</p>
</div>
@@ -20,17 +20,17 @@
{{#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="Your full name" @value={{this.name}} @helpText="Your full name." @inputClass="input-lg" />
- <InputGroup @name="Your email address" @type="email" @value={{this.email}} @helpText="Your email address." @inputClass="input-lg" />
- <InputGroup @name="Your phone number" @helpText="Your phone number.">
+ <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 "common.phone"}} @helpText={{t "onboard.index.phone"}}>
<PhoneInput @onInput={{fn (mut this.phone)}} class="form-input input-lg w-full" />
</InputGroup>
- <InputGroup @name="Organization name" @value={{this.organization_name}} @helpText="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." @inputClass="input-lg" />
- <InputGroup @name="Enter a password" @value={{this.password}} @type="password" @helpText="Your password, make sure it's a good one." @inputClass="input-lg" />
- <InputGroup @name="Confirm your password" @value={{this.password_confirmation}} @type="password" @helpText="Just to confirm the password you entered above." @inputClass="input-lg" />
+ <InputGroup @name={{t "onboard.index.organization-name"}} @value={{this.organization_name}} @helpText={{t "onboard.index.organization-name"}} @inputClass="input-lg" />
+ <InputGroup @name={{t "onboard.index.password"}} @value={{this.password}} @type="password" @helpText={{t "onboard.index.password"}} @inputClass="input-lg" />
+ <InputGroup @name={{t "onboard.index.confirm-password"}} @value={{this.password_confirmation}} @type="password" @helpText={{t "onboard.index.confirm-password"}} @inputClass="input-lg" />
<div class="flex items-center justify-end mt-5">
- <Button @icon="check" @iconPrefix="fas" @type="primary" @size="lg" @text="Continue" @isLoading={{this.isLoading}} @disabled={{this.readyToSubmit}} @onClick={{this.startOnboard}} />
+ <Button @icon="check" @iconPrefix="fas" @type="primary" @size="lg" @text={{t "onboard.index.continue-button"}} @isLoading={{this.isLoading}} @disabled={{this.readyToSubmit}} @onClick={{this.startOnboard}} />
</div>
</form>
</div>
\ No newline at end of file
diff --git a/console/app/templates/onboard/verify-email.hbs b/console/app/templates/onboard/verify-email.hbs
index 0e42ca76..d8f49b5c 100644
--- a/console/app/templates/onboard/verify-email.hbs
+++ b/console/app/templates/onboard/verify-email.hbs
@@ -2,7 +2,7 @@
<div class="mb-8">
<img class="mx-auto h-12 w-auto " src="/images/fleetbase-logo-svg.svg" alt={{t "app.name"}}>
<h2 class="mt-6 text-center text-lg font-extrabold text-gray-900 dark:text-white truncate">
- Verify your email address
+ {{t "onboard.verify-email.title"}}
</h2>
</div>
@@ -11,15 +11,15 @@
<FaIcon @icon="shield-check" @size="lg" class="text-blue-900 mr-4" />
</div>
<p class="flex-1 text-sm text-blue-900 dark:text-blue-900">
- <strong>Almost done!</strong><br> Check your email for a verification code.
+ {{t "onboard.verify-email.message-text" htnmlSafe=true}}
</p>
</div>
<form class="mt-8 space-y-6" {{on "submit" this.verifyCode}}>
- <InputGroup @type="tel" @name="Verification Code" @value={{this.code}} @helpText="Enter the verification code you received via email." @inputClass="input-lg" {{on "input" this.validateInput}} />
+ <InputGroup @type="tel" @name="Verification Code" @value={{this.code}} @helpText={{t "onboard.verify-email.verification-code-text"}} @inputClass="input-lg" {{on "input" this.validateInput}} />
<div>
- <Button @icon="check" @iconPrefix="fas" @buttonType="submit" @type="primary" @size="lg" @text="Verify & Continue" @isLoading={{this.isLoading}} @disabled={{this.isNotReadyToSubmit}} @onClick={{this.verifyCode}} />
+ <Button @icon="check" @iconPrefix="fas" @buttonType="submit" @type="primary" @size="lg" @text={{t "onboard.verify-email.verify-button-text"}} @isLoading={{this.isLoading}} @disabled={{this.isNotReadyToSubmit}} @onClick={{this.verifyCode}} />
</div>
{{#if this.stillWaiting}}
@@ -29,14 +29,14 @@
<FaIcon @icon="exclamation-triangle" @size="lg" class="text-yellow-400" />
</div>
<div class="ml-3 flex items-center">
- <span class="text-lg font-extrabold text-yellow-800">Didn't receive an email yet?</span>
+ <span class="text-lg font-extrabold text-yellow-800">{{t "onboard.verify-email.not-sent.message"}}</span>
</div>
</div>
<div class="py-3">
- <p class="text-yellow-700">Use alternaitve options below to verify your account.</p>
+ <p class="text-yellow-700">{{t "onboard.verify-email.not-sent.alternative-choice"}}</p>
<div class="flex items-center mt-3">
- <Button @type="default" class="mr-2" @onClick={{this.resendEmail}}>Resend Email</Button>
- <Button @type="default" @onClick={{this.resendBySms}}>Send by SMS</Button>
+ <Button @type="default" class="mr-2" @onClick={{this.resendEmail}}>{{t "onboard.verify-email.not-sent.resent-button-text"}}</Button>
+ <Button @type="default" @onClick={{this.resendBySms}}>{{t "onboard.verify-email.not-sent.sms-button-text"}}</Button>
</div>
</div>
</div>
diff --git a/console/translations/en-us.yaml b/console/translations/en-us.yaml
index c52a809b..df2d5115 100644
--- a/console/translations/en-us.yaml
+++ b/console/translations/en-us.yaml
@@ -1,6 +1,37 @@
app:
name: Fleetbase
+common:
+ save-button-text: Save Changes
+ new: New
+ delete: Delete
+ sort: Sort
+ filter: Filer
+ columns: Columns
+ settings: Settings
+ home: Home
+ admin: Admin
+ logout: Logout
+ dashboard: Dashboard
+ search: Search
+ uploading: Uploading...
+ profile: Profile
+ your-profile: Your Profile
+ name: Name
+ email: Email
+ phone: Your phone number
+ date-of-birth: Date of Birth
+ overview: Overview
+ account: Account
+ overview: Overview
+ branding: Branding
+ notifications: Notifications
+ services: Services
+ mail: Mail
+ filesystem: Filesystem
+ queue: Queue
+ socket: Socket
+ notification-channels: Notification Channels
auth:
forgot-password:
success-message: Check your email to continue!
@@ -42,17 +73,100 @@ auth:
help-text: Enter a password at-least 6 characters to continue.
submit-button: Reset Password
back-button: Back
+console:
+ account:
+ index:
+ upload-new: Upload new
+ phone: Your phone number.
+ photos: photos
+ admin:
+ config:
+ database:
+ title: Database Configuration
+ filesystem:
+ title: Filesystem Configuration
+ mail:
+ title: Mail Configuration
+ notification-channels:
+ title: Notification Channels Configuration
+ queue:
+ title: Queue Configuration
+ services:
+ title: Services Configuration
+ socket:
+ title: Socket Configuration
+ branding:
+ title: Branding
+ icon-text: Icon
+ upload-new: Upload new
+ reset-default: Reset to default
+ logo-text: Logo
+ theme: Default Theme
+ index:
+ total-users: Total Users
+ total-organizations: Total Organizations
+ total-transactions: Total Transactions
+ notification:
+ title: Notifications
+ notification-settings: Notification Settings
+
+ settings:
+ index:
+ title: Organization Settings
+ organization-name: Organization name
+ organization-description: Organization description
+ organization-phone: Organization phone number
+ organization-currency: Organization currency
+ organization-id: Organization ID
+ organization-branding: Organization Branding
+ logo: Logo
+ logo-help-text: Logo for your organization.
+ upload-new-logo: Upload new logo
+ backdrop: Backdrop
+ backdrop-help-text: Optional banner or background image for your organization.
+ upload-new-backdrop: Upload new backdrop
+ extensions:
+ 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:
+
+
+
invite:
for-users:
- invitation-message: You've been invited to join
+ invitation-message: You've been invited to join {companyName}
invitation-sent-message: You've been invited to join the {companyName} organization on {appName}. To accept this invitation, input your invitation code received by email and click continue.
invitation-code-sent-text: Your invitiation code
accept-invitation-text: Accept Invitation
onboard:
- install:
- failed-message-sent: The install failed! Click the button below to retry the install.
- retry-install: Retry Install
- start-install: Start Install
+ index:
+ 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.
+ 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.
+ confirm-password: Just to confirm the password you entered above.
+ continue-button: Continue
+ verify-email:
+ title: Verify your email address
+ message-text: <strong>Almost done!</strong><br> Check your email for a verification code.
+ verification-code-text: Enter the verification code you received via email.
+ verify-button-text: Verify & Continue
+ not-sent:
+ message: Didn't receive an email yet?
+ alternative-choice: Use alternaitve options below to verify your account.
+ resent-button-text: Resend Email
+ sms-button-text: Send by SMS
+
+install:
+ failed-message-sent: The install failed! Click the button below to retry the install.
+ retry-install: Retry Install
+ start-install: Start Install
layout:
header:
@@ -66,18 +180,7 @@ layout:
keyboard-shortcuts: Show keyboard shortcuts
changelog: Changelog
-terms:
- new: New
- sort: Sort
- filter: Filer
- columns: Columns
- settings: Settings
- home: Home
- admin: Admin
- logout: Logout
- dashboard: Dashboard
- search: Search
- uploading: Uploading...
+
phrases:
search-input: Search Input