Skip to content

Commit c043c19

Browse files
authored
chore(clerk-js,localizations): Update TaskChooseOrganization copies for create organization screen (#6584)
1 parent 9799a44 commit c043c19

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+222
-14
lines changed

.changeset/curvy-shoes-create.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@clerk/localizations': patch
3+
'@clerk/clerk-js': patch
4+
'@clerk/testing': patch
5+
'@clerk/types': patch
6+
---
7+
8+
Update copies for create organization screen on session tasks

packages/clerk-js/src/ui/components/SessionTasks/tasks/TaskChooseOrganization/CreateOrganizationScreen.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ export const CreateOrganizationScreen = (props: CreateOrganizationScreenProps) =
2828

2929
const nameField = useFormControl('name', '', {
3030
type: 'text',
31-
label: localizationKeys('formFieldLabel__organizationName'),
32-
placeholder: localizationKeys('formFieldInputPlaceholder__organizationName'),
31+
label: localizationKeys('taskChooseOrganization.createOrganization.formFieldLabel__name'),
32+
placeholder: localizationKeys('taskChooseOrganization.createOrganization.formFieldInputPlaceholder__name'),
3333
});
3434
const slugField = useFormControl('slug', '', {
3535
type: 'text',
36-
label: localizationKeys('formFieldLabel__organizationSlug'),
37-
placeholder: localizationKeys('formFieldInputPlaceholder__organizationSlug'),
36+
label: localizationKeys('taskChooseOrganization.createOrganization.formFieldLabel__slug'),
37+
placeholder: localizationKeys('taskChooseOrganization.createOrganization.formFieldInputPlaceholder__slug'),
3838
});
3939

4040
const onSubmit = async (e: React.FormEvent) => {

packages/clerk-js/src/ui/components/SessionTasks/tasks/TaskChooseOrganization/__tests__/TaskChooseOrganization.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ describe('TaskChooseOrganization', () => {
2222
const { queryByText, queryByRole } = render(<TaskChooseOrganization />, { wrapper });
2323

2424
await waitFor(() => {
25-
expect(queryByText('Setup your account')).not.toBeInTheDocument();
26-
expect(queryByText('Tell us a bit about your organization')).not.toBeInTheDocument();
25+
expect(queryByText('Setup your organization')).not.toBeInTheDocument();
26+
expect(queryByText('Enter your organization details to continue')).not.toBeInTheDocument();
2727
expect(queryByRole('button', { name: /sign out/i })).not.toBeInTheDocument();
2828
});
2929
});
@@ -42,8 +42,8 @@ describe('TaskChooseOrganization', () => {
4242
const { getByText, getByRole } = render(<TaskChooseOrganization />, { wrapper });
4343

4444
await waitFor(() => {
45-
expect(getByText('Setup your account')).toBeInTheDocument();
46-
expect(getByText('Tell us a bit about your organization')).toBeInTheDocument();
45+
expect(getByText('Setup your organization')).toBeInTheDocument();
46+
expect(getByText('Enter your organization details to continue')).toBeInTheDocument();
4747
expect(getByRole('link', { name: /sign out/i })).toBeInTheDocument();
4848
});
4949
});
@@ -63,7 +63,7 @@ describe('TaskChooseOrganization', () => {
6363

6464
await waitFor(() => {
6565
expect(getByRole('textbox', { name: /name/i })).toBeInTheDocument();
66-
expect(getByText('Create new organization')).toBeInTheDocument();
66+
expect(getByText('Continue')).toBeInTheDocument();
6767
});
6868
});
6969

@@ -151,7 +151,7 @@ describe('TaskChooseOrganization', () => {
151151

152152
await waitFor(() => {
153153
expect(getByRole('textbox', { name: /name/i })).toBeInTheDocument();
154-
expect(getByRole('button', { name: /create new organization/i })).toBeInTheDocument();
154+
expect(getByRole('button', { name: /continue/i })).toBeInTheDocument();
155155
expect(getByRole('button', { name: /cancel/i })).toBeInTheDocument();
156156
expect(queryByText('Existing Org')).not.toBeInTheDocument();
157157
});

packages/localizations/src/ar-SA.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,10 @@ export const arSA: LocalizationResource = {
813813
createOrganization: {
814814
formButtonReset: undefined,
815815
formButtonSubmit: undefined,
816+
formFieldInputPlaceholder__name: undefined,
817+
formFieldInputPlaceholder__slug: undefined,
818+
formFieldLabel__name: undefined,
819+
formFieldLabel__slug: undefined,
816820
subtitle: undefined,
817821
title: undefined,
818822
},

packages/localizations/src/be-BY.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,10 @@ export const beBY: LocalizationResource = {
820820
createOrganization: {
821821
formButtonReset: undefined,
822822
formButtonSubmit: undefined,
823+
formFieldInputPlaceholder__name: undefined,
824+
formFieldInputPlaceholder__slug: undefined,
825+
formFieldLabel__name: undefined,
826+
formFieldLabel__slug: undefined,
823827
subtitle: undefined,
824828
title: undefined,
825829
},

packages/localizations/src/bg-BG.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,10 @@ export const bgBG: LocalizationResource = {
816816
createOrganization: {
817817
formButtonReset: undefined,
818818
formButtonSubmit: undefined,
819+
formFieldInputPlaceholder__name: undefined,
820+
formFieldInputPlaceholder__slug: undefined,
821+
formFieldLabel__name: undefined,
822+
formFieldLabel__slug: undefined,
819823
subtitle: undefined,
820824
title: undefined,
821825
},

packages/localizations/src/bn-IN.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,10 @@ export const bnIN: LocalizationResource = {
820820
createOrganization: {
821821
formButtonReset: undefined,
822822
formButtonSubmit: undefined,
823+
formFieldInputPlaceholder__name: undefined,
824+
formFieldInputPlaceholder__slug: undefined,
825+
formFieldLabel__name: undefined,
826+
formFieldLabel__slug: undefined,
823827
subtitle: undefined,
824828
title: undefined,
825829
},

packages/localizations/src/ca-ES.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,10 @@ export const caES: LocalizationResource = {
815815
createOrganization: {
816816
formButtonReset: undefined,
817817
formButtonSubmit: undefined,
818+
formFieldInputPlaceholder__name: undefined,
819+
formFieldInputPlaceholder__slug: undefined,
820+
formFieldLabel__name: undefined,
821+
formFieldLabel__slug: undefined,
818822
subtitle: undefined,
819823
title: undefined,
820824
},

packages/localizations/src/cs-CZ.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,10 @@ export const csCZ: LocalizationResource = {
826826
createOrganization: {
827827
formButtonReset: undefined,
828828
formButtonSubmit: undefined,
829+
formFieldInputPlaceholder__name: undefined,
830+
formFieldInputPlaceholder__slug: undefined,
831+
formFieldLabel__name: undefined,
832+
formFieldLabel__slug: undefined,
829833
subtitle: undefined,
830834
title: undefined,
831835
},

packages/localizations/src/da-DK.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,10 @@ export const daDK: LocalizationResource = {
813813
createOrganization: {
814814
formButtonReset: undefined,
815815
formButtonSubmit: undefined,
816+
formFieldInputPlaceholder__name: undefined,
817+
formFieldInputPlaceholder__slug: undefined,
818+
formFieldLabel__name: undefined,
819+
formFieldLabel__slug: undefined,
816820
subtitle: undefined,
817821
title: undefined,
818822
},

0 commit comments

Comments
 (0)