Lokalized JavaScript — Version 1.0.0
Guides and examples
All versions
Preparing search index...
lokalized/load
loadEntireManifest
Function loadEntireManifest
loadEntireManifest
(
manifest
:
StringsManifestV1
,
options
?:
Readonly
<
{
fetch
?:
(
url
:
string
,
init
:
RequestInit
)
=>
Promise
<
Response
>
;
limits
?:
Readonly
<
{
maximumInputBytes
?:
number
;
maximumJsonNestingDepth
?:
number
;
maximumLocalizedStringsFiles
?:
number
;
maximumReaderCharacters
?:
number
;
maximumTotalInputBytes
?:
number
;
maximumTranslationNodes
?:
number
;
maximumWarnings
?:
number
;
}
,
>
;
partialFailure
?:
PartialFailurePolicy
;
request
?:
Readonly
<
{
credentials
?:
"same-origin"
|
"omit"
|
"include"
;
mode
?:
"cors"
|
"same-origin"
;
}
,
>
;
signal
?:
AbortSignal
;
}
,
>
,
)
:
Promise
<
Readonly
<
{
catalogIdentity
:
Readonly
<
{
catalogFingerprint
:
string
;
catalogVersion
:
string
}
,
>
;
catalogs
:
Readonly
<
Record
<
string
,
Readonly
<
{
$lokalized
:
"parsed-strings-file"
;
locale
:
string
;
originsByKey
:
Readonly
<
Record
<
string
,
readonly
(...)
[]
>
>
;
sources
:
readonly
string
[]
;
strings
:
readonly
LocalizedStringInput
[]
;
warnings
:
readonly
LocalizedStringWarning
[]
;
}
,
>
,
>
,
>
;
cldrVersion
:
string
;
complete
:
boolean
;
coverage
:
Readonly
<
{
kind
:
"entire-manifest"
}
>
;
dataFingerprint
:
string
;
failures
:
readonly
LoadFailure
[]
;
fallbackLocale
:
string
;
loadingLimits
:
Readonly
<
{
maximumInputBytes
:
number
;
maximumJsonNestingDepth
:
number
;
maximumLocalizedStringsFiles
:
number
;
maximumReaderCharacters
:
number
;
maximumTotalInputBytes
:
number
;
maximumTranslationNodes
:
number
;
maximumWarnings
:
number
;
}
,
>
;
manifestLocaleConfiguration
:
Readonly
<
{
fallbackLocale
:
string
;
supportedLocales
:
readonly
string
[]
;
tiebreakerLocalesByLanguageCode
:
Readonly
<
Record
<
string
,
readonly
string
[]
>
,
>
;
}
,
>
;
requestedFiles
:
readonly
FetchEntry
[]
;
tiebreakerLocalesByLanguageCode
:
Readonly
<
Record
<
string
,
readonly
string
[]
>
,
>
;
warnings
:
readonly
Readonly
<
{
key
:
string
;
locale
:
string
;
message
:
string
;
missingLanguageForms
:
readonly
string
[]
;
placeholder
:
string
;
source
:
string
;
type
:
|
"INCOMPLETE_CARDINALITY_TRANSLATIONS"
|
"INCOMPLETE_ORDINALITY_TRANSLATIONS"
;
}
,
>
[]
;
}
,
>
,
>
Parameters
manifest
:
StringsManifestV1
Optional
options
:
Readonly
<
{
fetch
?:
(
url
:
string
,
init
:
RequestInit
)
=>
Promise
<
Response
>
;
limits
?:
Readonly
<
{
maximumInputBytes
?:
number
;
maximumJsonNestingDepth
?:
number
;
maximumLocalizedStringsFiles
?:
number
;
maximumReaderCharacters
?:
number
;
maximumTotalInputBytes
?:
number
;
maximumTranslationNodes
?:
number
;
maximumWarnings
?:
number
;
}
,
>
;
partialFailure
?:
PartialFailurePolicy
;
request
?:
Readonly
<
{
credentials
?:
"same-origin"
|
"omit"
|
"include"
;
mode
?:
"cors"
|
"same-origin"
;
}
,
>
;
signal
?:
AbortSignal
;
}
,
>
Returns
Promise
<
Readonly
<
{
catalogIdentity
:
Readonly
<
{
catalogFingerprint
:
string
;
catalogVersion
:
string
}
,
>
;
catalogs
:
Readonly
<
Record
<
string
,
Readonly
<
{
$lokalized
:
"parsed-strings-file"
;
locale
:
string
;
originsByKey
:
Readonly
<
Record
<
string
,
readonly
(...)
[]
>
>
;
sources
:
readonly
string
[]
;
strings
:
readonly
LocalizedStringInput
[]
;
warnings
:
readonly
LocalizedStringWarning
[]
;
}
,
>
,
>
,
>
;
cldrVersion
:
string
;
complete
:
boolean
;
coverage
:
Readonly
<
{
kind
:
"entire-manifest"
}
>
;
dataFingerprint
:
string
;
failures
:
readonly
LoadFailure
[]
;
fallbackLocale
:
string
;
loadingLimits
:
Readonly
<
{
maximumInputBytes
:
number
;
maximumJsonNestingDepth
:
number
;
maximumLocalizedStringsFiles
:
number
;
maximumReaderCharacters
:
number
;
maximumTotalInputBytes
:
number
;
maximumTranslationNodes
:
number
;
maximumWarnings
:
number
;
}
,
>
;
manifestLocaleConfiguration
:
Readonly
<
{
fallbackLocale
:
string
;
supportedLocales
:
readonly
string
[]
;
tiebreakerLocalesByLanguageCode
:
Readonly
<
Record
<
string
,
readonly
string
[]
>
,
>
;
}
,
>
;
requestedFiles
:
readonly
FetchEntry
[]
;
tiebreakerLocalesByLanguageCode
:
Readonly
<
Record
<
string
,
readonly
string
[]
>
,
>
;
warnings
:
readonly
Readonly
<
{
key
:
string
;
locale
:
string
;
message
:
string
;
missingLanguageForms
:
readonly
string
[]
;
placeholder
:
string
;
source
:
string
;
type
:
|
"INCOMPLETE_CARDINALITY_TRANSLATIONS"
|
"INCOMPLETE_ORDINALITY_TRANSLATIONS"
;
}
,
>
[]
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Guides and examples
All versions
Lokalized JavaScript — Version 1.0.0
Loading...