Variables
Const graphql
graphql
: { makeResolvers
: (registries
: { LocalesRegistry
: { Locales
: LocaleType[]; getLocale
: (localeId
: string) => undefined | LocaleType; registerLocale
: (locale
: any) => void }; StringsRegistry
: { Strings
: {}; addStrings
: (language
: any, strings
: any) => void; getString
: (__namedParameters
: any) => string; getStrings
: (localeId
: any) => any } }) => { Query
: { locale
: (root
: any, __namedParameters
: Object, context
: any) => Promise<{ dynamic
?: boolean; id
?: string; label
?: string; method
?: any; originalId
?: string; required
?: boolean; rtl
?: boolean; strings
: any }> } }; typeDefs
: string } = ...
Type declaration
-
makeResolvers: (registries: { LocalesRegistry: { Locales: LocaleType[]; getLocale: (localeId: string) => undefined | LocaleType; registerLocale: (locale: any) => void }; StringsRegistry: { Strings: {}; addStrings: (language: any, strings: any) => void; getString: (__namedParameters: any) => string; getStrings: (localeId: any) => any } }) => { Query: { locale: (root: any, __namedParameters: Object, context: any) => Promise<{ dynamic?: boolean; id?: string; label?: string; method?: any; originalId?: string; required?: boolean; rtl?: boolean; strings: any }> } }
-
- (registries: { LocalesRegistry: { Locales: LocaleType[]; getLocale: (localeId: string) => undefined | LocaleType; registerLocale: (locale: any) => void }; StringsRegistry: { Strings: {}; addStrings: (language: any, strings: any) => void; getString: (__namedParameters: any) => string; getStrings: (localeId: any) => any } }): { Query: { locale: (root: any, __namedParameters: Object, context: any) => Promise<{ dynamic?: boolean; id?: string; label?: string; method?: any; originalId?: string; required?: boolean; rtl?: boolean; strings: any }> } }
-
Parameters
-
registries: { LocalesRegistry: { Locales: LocaleType[]; getLocale: (localeId: string) => undefined | LocaleType; registerLocale: (locale: any) => void }; StringsRegistry: { Strings: {}; addStrings: (language: any, strings: any) => void; getString: (__namedParameters: any) => string; getStrings: (localeId: any) => any } }
-
LocalesRegistry: { Locales: LocaleType[]; getLocale: (localeId: string) => undefined | LocaleType; registerLocale: (locale: any) => void }
-
-
getLocale: (localeId: string) => undefined | LocaleType
-
registerLocale: (locale: any) => void
-
StringsRegistry: { Strings: {}; addStrings: (language: any, strings: any) => void; getString: (__namedParameters: any) => string; getStrings: (localeId: any) => any }
-
Strings: {}
-
addStrings: (language: any, strings: any) => void
-
- (language: any, strings: any): void
-
Parameters
-
language: any
-
strings: any
Returns void
-
getString: (__namedParameters: any) => string
-
- (__namedParameters: any): string
-
Parameters
Returns string
-
getStrings: (localeId: any) => any
Returns { Query: { locale: (root: any, __namedParameters: Object, context: any) => Promise<{ dynamic?: boolean; id?: string; label?: string; method?: any; originalId?: string; required?: boolean; rtl?: boolean; strings: any }> } }
-
Query: { locale: (root: any, __namedParameters: Object, context: any) => Promise<{ dynamic?: boolean; id?: string; label?: string; method?: any; originalId?: string; required?: boolean; rtl?: boolean; strings: any }> }
-
locale: (root: any, __namedParameters: Object, context: any) => Promise<{ dynamic?: boolean; id?: string; label?: string; method?: any; originalId?: string; required?: boolean; rtl?: boolean; strings: any }>
-
- (root: any, __namedParameters: Object, context: any): Promise<{ dynamic?: boolean; id?: string; label?: string; method?: any; originalId?: string; required?: boolean; rtl?: boolean; strings: any }>
-
Parameters
-
root: any
-
__namedParameters: Object
-
context: any
Returns Promise<{ dynamic?: boolean; id?: string; label?: string; method?: any; originalId?: string; required?: boolean; rtl?: boolean; strings: any }>
-
typeDefs: string
Functions
Const getLocaleFromRegistries
- getLocaleFromRegistries(registries: { LocalesRegistry: { Locales: LocaleType[]; getLocale: (localeId: string) => undefined | LocaleType; registerLocale: (locale: any) => void }; StringsRegistry: { Strings: {}; addStrings: (language: any, strings: any) => void; getString: (__namedParameters: any) => string; getStrings: (localeId: any) => any } }): (localeId: string) => { dynamic?: boolean; id?: string; label?: string; method?: any; originalId?: string; required?: boolean; rtl?: boolean; strings: any }
-
Parameters
-
registries: { LocalesRegistry: { Locales: LocaleType[]; getLocale: (localeId: string) => undefined | LocaleType; registerLocale: (locale: any) => void }; StringsRegistry: { Strings: {}; addStrings: (language: any, strings: any) => void; getString: (__namedParameters: any) => string; getStrings: (localeId: any) => any } }
-
LocalesRegistry: { Locales: LocaleType[]; getLocale: (localeId: string) => undefined | LocaleType; registerLocale: (locale: any) => void }
-
-
getLocale: (localeId: string) => undefined | LocaleType
-
registerLocale: (locale: any) => void
-
StringsRegistry: { Strings: {}; addStrings: (language: any, strings: any) => void; getString: (__namedParameters: any) => string; getStrings: (localeId: any) => any }
-
Strings: {}
-
addStrings: (language: any, strings: any) => void
-
- (language: any, strings: any): void
-
Parameters
-
language: any
-
strings: any
Returns void
-
getString: (__namedParameters: any) => string
-
- (__namedParameters: any): string
-
Parameters
Returns string
-
getStrings: (localeId: any) => any
Returns (localeId: string) => { dynamic?: boolean; id?: string; label?: string; method?: any; originalId?: string; required?: boolean; rtl?: boolean; strings: any }
-
- (localeId: string): { dynamic?: boolean; id?: string; label?: string; method?: any; originalId?: string; required?: boolean; rtl?: boolean; strings: any }
-
Parameters
Returns { dynamic?: boolean; id?: string; label?: string; method?: any; originalId?: string; required?: boolean; rtl?: boolean; strings: any }
-
Optional dynamic?: boolean
-
Optional id?: string
-
Optional label?: string
-
Optional method?: any
-
Optional originalId?: string
-
Optional required?: boolean
-
Optional rtl?: boolean
-
strings: any
To be merged in your own schema