useSystem()
WARNING
Single File Component (SFC) support for Administration extensions is experimental. It is currently only available on the trunk branch of shopware/shopware and is not part of any 6.7 release. The APIs described on this page can still change without a deprecation.
ts
import { useSystem } from 'shopware:composables/use-system';
function useSystem(): {
locales: Ref<string[]>;
registerAdminLocale: (locale: string) => void;
};The locales the Administration has registered.
setAdminLocale() refuses a locale that is not in this list, so a plugin shipping a new one registers it here first. Registering the same locale twice is a no-op.