Skip to content

Modular logistics and supply chain operating system (LSOS)

added translation keys for install and invite for user

mm3dddb2098d0cb85d
diff --git a/console/app/templates/install.hbs b/console/app/templates/install.hbs
index b3fc16a6..3e86304b 100644
--- a/console/app/templates/install.hbs
+++ b/console/app/templates/install.hbs
@@ -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>The install failed! Click the button below to retry the install.</span>
+ <span>{{t "onboard.install.failed-message-sent"}}</span>
</div>
{{/if}}
- <Button @type="primary" @icon="play" @size="lg" @text={{if this.error "Retry 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 "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}} />
</div>
</div>
</div>
diff --git a/console/app/templates/invite/for-user.hbs b/console/app/templates/invite/for-user.hbs
index 6991dfc9..9b441649 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">
- You've been invited to join {{@model.name}}
+ {{t "invite.for-users.invitation-message"}} {{@model.name}}
</h2>
</div>
@@ -13,22 +13,22 @@
<FaIcon @icon="info-circle" class="text-blue-900 mr-4" />
</div>
<p class="flex-1 text-sm text-blue-900 dark:text-blue-900">
- You've been invited to join the {{@model.name}} organization on {{t "app.name"}}. To accept this invitation, input your invitation code received by email and click continue.
+ {{t "invite.invitation-sent-message" htnmlSafe=true [email protected] appName=(t "app.name")}}
</p>
</div>
<form class="space-y-6" {{on "submit" this.acceptInvite}}>
<div>
<label for="code" class="block text-sm font-medium text-gray-700 dark:text-gray-50">
- Your invitiation code
+ {{t "invite.for-users.invitation-code-sent-text"}}
</label>
<div class="mt-2">
- <Input @value={{this.code}} id="code" name="code" @type="code" required class="form-input form-input-lg w-full" placeholder="Your invitiation code" />
+ <Input @value={{this.code}} id="code" name="code" @type="code" required class="form-input form-input-lg w-full" placeholder={{t "invite.for-users.invitation-code-sent-text"}} />
</div>
</div>
<div>
- <Button @icon="check" @size="lg" @type="primary" @buttonType="submit" @text="Accept Invitation" @onClick={{this.acceptInvite}} @isLoading={{this.isLoading}} />
+ <Button @icon="check" @size="lg" @type="primary" @buttonType="submit" @text={{t "invite.for-users.accept-invitation-text"}} @onClick={{this.acceptInvite}} @isLoading={{this.isLoading}} />
</div>
</form>
</div>
diff --git a/console/translations/en-us.yaml b/console/translations/en-us.yaml
index 0df5f4a7..c52a809b 100644
--- a/console/translations/en-us.yaml
+++ b/console/translations/en-us.yaml
@@ -42,6 +42,17 @@ auth:
help-text: Enter a password at-least 6 characters to continue.
submit-button: Reset Password
back-button: Back
+invite:
+ for-users:
+ invitation-message: You've been invited to join
+ 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
layout:
header: