Skip to content

Commit

Permalink
Update use of word "tenant" to use "account" instead
Browse files Browse the repository at this point in the history
  • Loading branch information
raix committed Dec 15, 2023
1 parent 474d9db commit ad4499f
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 58 deletions.
2 changes: 1 addition & 1 deletion application/account-management/WebApp/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function Root({ children, params }: LayoutProps) {
</h1>
<div className="justify-start flex flex-row border-b border-border py-4">
<Button className="bg-blue-600 text-white py-2 px-4 rounded-full" onPress={handleCreateTenant}>
<Trans>Create Tenant</Trans>
<Trans>Create Account</Trans>
</Button>
</div>
<nav className="grow">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type PageProps = {
export default function Page({ params }: PageProps) {
return (
<div>
<h1>Show tenant id: "{params.id}"</h1>
<h1>Show account id: "{params.id}"</h1>
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function createTenant(_: State, formData: FormData): Promise<State>
console.log("validation errors", validatedFields.error.flatten().fieldErrors);
return {
errors: validatedFields.error.flatten().fieldErrors,
message: i18n.t("Missing Fields. Failed to Create Tenant."),
message: i18n.t("Missing Fields. Failed to Create Account."),
};
}

Expand Down Expand Up @@ -60,7 +60,7 @@ export async function createTenant(_: State, formData: FormData): Promise<State>
};
} catch (e) {
return {
message: i18n.t("Server error: Failed to Create Tenant."),
message: i18n.t("Server error: Failed to Create Account."),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function CreateTenantForm() {
>
<div className="flex flex-col w-fit bg-gray-200 rounded p-4 gap-2 shadow-sm">
<h1 className="text-xl font-bold">
<Trans>Create a tenant</Trans>
<Trans>Create a account</Trans>
</h1>
<TextField name="subdomain" autoFocus className="flex flex-col" isRequired>
<Label>
Expand Down Expand Up @@ -46,7 +46,7 @@ export default function CreateTenantForm() {
type="submit"
className="bg-blue-600 p-2 rounded-md text-white text-sm border border-border shadow-lg hover:bg-slate-400 w-fit"
>
<Trans>Create tenant!</Trans>
<Trans>Create account!</Trans>
</Button>
</div>
</Form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function CreatedTenantSuccessPage({}: PageProps) {
<div className="items-center flex flex-col justify-center h-full">
<div className="p-8 bg-gray-800 text-white rounded-xl shadow-md text-center gap-4 flex flex-col">
<h1 className="text-2xl">Success!</h1>
<p>Your tenant has been created.</p>
<p>Your account has been created.</p>
<div className="self-center absolute top-10">
<Confetti active={confetti} config={config} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function Root() {
</h1>
<div className="justify-start flex flex-row border-b border-border py-4">
<Button className="bg-blue-600 text-white py-2 px-4 rounded-full" onPress={handleCreateTenant}>
Create Tenant
Create Account
</Button>
</div>
<nav className="grow">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2023-12-13 18:10+0100\n"
"POT-Creation-Date: 2023-12-15 20:50+0100\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
"Language: da-DK\n"
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Plural-Forms: \n"

#. js-lingui-explicit-id
msgid "Missing Fields. Failed to Create Tenant."
msgstr "Felter mangler. Kunne ikke oprette tenant."
msgid "Missing Fields. Failed to Create Account."
msgstr "Felter mangler. Kunne ikke oprette konto."

#. js-lingui-explicit-id
msgid "Server error: Failed to Create Tenant."
msgstr "Serverfejl: Kunne ikke oprette tenant."
msgid "Server error: Failed to Create Account."
msgstr "Serverfejl: Kunne ikke oprette konto."

#. js-lingui-explicit-id
msgid "subdomain"
Expand All @@ -31,22 +25,22 @@ msgstr "navn"

#. js-lingui-explicit-id
msgid "email"
msgstr "email"
msgstr "e-mail"

msgid "Account Management"
msgstr "Kontostyring"
msgstr "Kontoadministration"

msgid "Create a tenant"
msgstr "Opret en tenant"
msgid "Create a account"
msgstr "Opret en konto"

msgid "Create Tenant"
msgstr "Opret tenant"
msgid "Create Account"
msgstr "Opret konto"

msgid "Create tenant!"
msgstr "Opret tenant!"
msgid "Create account!"
msgstr "Opret konto!"

msgid "Email"
msgstr "Email"
msgstr "E-mail"

msgid "Name"
msgstr "Navn"
Expand All @@ -58,4 +52,4 @@ msgid "Subdomain"
msgstr "Subdomæne"

msgid "User Management"
msgstr "Brugerstyring"
msgstr "Brugeradministration"
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2023-12-13 18:10+0100\n"
"POT-Creation-Date: 2023-12-15 20:50+0100\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
"Language: en-US\n"
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Plural-Forms: \n"

#. js-lingui-explicit-id
msgid "Missing Fields. Failed to Create Tenant."
msgstr "Missing Fields. Failed to Create Tenant."
msgid "Missing Fields. Failed to Create Account."
msgstr "Missing Fields. Failed to Create Account."

#. js-lingui-explicit-id
msgid "Server error: Failed to Create Tenant."
msgstr "Server error: Failed to Create Tenant."
msgid "Server error: Failed to Create Account."
msgstr "Server error: Failed to Create Account."

#. js-lingui-explicit-id
msgid "subdomain"
Expand All @@ -36,14 +30,14 @@ msgstr "email"
msgid "Account Management"
msgstr "Account Management"

msgid "Create a tenant"
msgstr "Create a tenant"
msgid "Create a account"
msgstr "Create a account"

msgid "Create Tenant"
msgstr "Create Tenant"
msgid "Create Account"
msgstr "Create Account"

msgid "Create tenant!"
msgstr "Create tenant!"
msgid "Create account!"
msgstr "Create account!"

msgid "Email"
msgstr "Email"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2023-12-13 18:10+0100\n"
"POT-Creation-Date: 2023-12-15 20:50+0100\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
"Language: pseudo\n"
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Plural-Forms: \n"

#. js-lingui-explicit-id
msgid "Missing Fields. Failed to Create Tenant."
msgid "Missing Fields. Failed to Create Account."
msgstr ""

#. js-lingui-explicit-id
msgid "Server error: Failed to Create Tenant."
msgid "Server error: Failed to Create Account."
msgstr ""

#. js-lingui-explicit-id
Expand All @@ -36,13 +30,13 @@ msgstr ""
msgid "Account Management"
msgstr ""

msgid "Create a tenant"
msgid "Create a account"
msgstr ""

msgid "Create Tenant"
msgid "Create Account"
msgstr ""

msgid "Create tenant!"
msgid "Create account!"
msgstr ""

msgid "Email"
Expand Down

0 comments on commit ad4499f

Please sign in to comment.