2.0: Globals can't be localized
jackadair opened this issue · comments
Jack Adair commented
Steps to reproduce:
- Create a basic global
import { GlobalConfig } from "payload/types";
export const Global: GlobalConfig = {
slug: "Test",
label: "Test",
fields: [
{
name: "name",
type: "text",
localized: true,
}
]
}
- Have localization enabled with more than one locale
- Save global entry in one locale
- Switch locales, type to change field
- Switch back to the original locale and you will see that it is overwritten
I am able to get the desired behaviour when I disable the tenancy plugin, for this issue I'm using my blank payload template (not my working project). This only appears to be happening on globals and not collections.
Demo: