System locale
စက်၏ ဘာသာစကား / ဒေသ (ISO) ကို ရယူနိုင်ပါသည် — ဥပမာ en-US။
- Method: getDeviceLocale()
TSXSystemLocale
1import { SystemLocale } from "@quan-erp/shared-frontend-core";
2
3export function detectDeviceLocale() {
4 const locale = SystemLocale.instance.getDeviceLocale();
5 // e.g. "en-US", "my-MM"
6 return locale;
7}
8
9// Use as a default only — ERP LOCALE setting from base-frontend should win after login.