fix(i18n): translate shipped English, repair broken catalogs (#2479)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-06 02:58:56 +02:00
1 parent 9b3773c1e6
commit 519b3a6127
105 files changed
+1073 -817

No files matched your search

@@ -74,17 +74,13 @@ describe('buildPhoneGateEscapeConfirmCopy', () => {
const copy = confirmCopy({ownedGuildNames: ['My Server']});
expect(copy.title).toBe('Set this check aside?');
expect(copy.primaryVariant).toBe('primary');
expect(copy.bodyLines[1]).toBe(
'You stay in My Server. Owners cannot leave their own community.',
);
expect(copy.bodyLines[1]).toBe('You stay in My Server. Owners cannot leave their own community.');
});
it('states the leave line before the ownership line', () => {
const copy = confirmCopy({guildNames: ['Cat Fans'], ownedGuildNames: ['My Server', 'My Other Server']});
expect(copy.bodyLines[1]).toContain('You will leave Cat Fans.');
expect(copy.bodyLines[2]).toBe(
'You stay in My Server, My Other Server. Owners cannot leave their own community.',
);
expect(copy.bodyLines[2]).toBe('You stay in My Server, My Other Server. Owners cannot leave their own community.');
});
it('warns about the remaining email step before the support line, which is always last', () => {
@@ -42,9 +42,7 @@ export function buildPhoneGateEscapeConfirmCopy(i18n: I18n, plan: PhoneGateEscap
bodyLines.push(i18n._(ESCAPE_CONFIRM_LEAVE_DESCRIPTOR, {guildNames: plan.guildNames.join(', ')}));
}
if (plan.ownedGuildNames.length > 0) {
bodyLines.push(
i18n._(ESCAPE_CONFIRM_OWNED_DESCRIPTOR, {ownedNames: plan.ownedGuildNames.join(', ')}),
);
bodyLines.push(i18n._(ESCAPE_CONFIRM_OWNED_DESCRIPTOR, {ownedNames: plan.ownedGuildNames.join(', ')}));
}
if (plan.emailStepRemains) {
bodyLines.push(i18n._(ESCAPE_CONFIRM_EMAIL_REMAINS_DESCRIPTOR));