cra-template-demplate
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "cra-template-demplate", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "react", |
{ | ||
"test": "اختبار" | ||
"Home": "مسكن", | ||
"List": "قائمة", | ||
"App": "برنامج", | ||
"subnav {value}": "ملاحة فرعية {value}", | ||
"option {value}": "اختيار {value}" | ||
} |
{ | ||
"test": "test", | ||
"Home": "Home", | ||
"List": "List", | ||
"App": "App", | ||
"subnav {value}": "subnav {value}", | ||
"option {value}": "option {value}", | ||
"text <span>{value}</span>.": [{ | ||
@@ -4,0 +8,0 @@ "type": 0, |
import create from 'zustand'; | ||
import {persist} from 'zustand/middleware'; | ||
@@ -10,2 +11,4 @@ export enum Locale { | ||
export const RTLLocales = [Locale.AR]; | ||
interface Store { | ||
@@ -16,5 +19,7 @@ locale: Locale; | ||
export const useLocaleStore = create<Store>((set, get) => ({ | ||
export const useLocaleStore = create(persist<Store>((set) => ({ | ||
locale: defaultLocale, | ||
setLocale: (locale: Locale) => set(state => ({locale})) | ||
setLocale: (locale: Locale) => set(() => ({locale})) | ||
}), { | ||
name: 'locale' | ||
})); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40907
38
562