revert: "feat: adds new experimental.localizeStatus option (#13207)" (#13928)

This reverts commit 0f6d748365.

# Conflicts:
#	docs/configuration/overview.mdx
#	docs/experimental/overview.mdx
#	packages/ui/src/elements/Status/index.tsx
This commit is contained in:
Dan Ribbens
2025-09-25 11:14:19 -04:00
committed by GitHub
parent c2300059a6
commit 456e3d6459
27 changed files with 54 additions and 341 deletions

View File

@@ -428,9 +428,6 @@ export default buildConfigWithDefaults({
slug: 'global-text',
},
],
experimental: {
localizeStatus: true,
},
localization: {
filterAvailableLocales: ({ locales }) => {
return locales.filter((locale) => locale.code !== 'xx')

View File

@@ -673,33 +673,6 @@ describe('Localization', () => {
await changeLocale(page, defaultLocale)
await expect(page.locator('#field-title')).toBeEmpty()
})
test('should show localized status in collection list', async () => {
await page.goto(urlPostsWithDrafts.create)
const engTitle = 'Eng published'
const spanTitle = 'Spanish draft'
await changeLocale(page, defaultLocale)
await fillValues({ title: engTitle })
await saveDocAndAssert(page)
await changeLocale(page, spanishLocale)
await fillValues({ title: spanTitle })
await saveDocAndAssert(page, '#action-save-draft')
await page.goto(urlPostsWithDrafts.list)
const columns = page.getByRole('button', { name: 'Columns' })
await columns.click()
await page.locator('#_status').click()
await expect(page.locator('.row-1 .cell-title')).toContainText(spanTitle)
await expect(page.locator('.row-1 .cell-_status')).toContainText('Draft')
await changeLocale(page, defaultLocale)
await expect(page.locator('.row-1 .cell-title')).toContainText(engTitle)
await expect(page.locator('.row-1 .cell-_status')).toContainText('Published')
})
})
test('should not show publish specific locale button when no localized fields exist', async () => {