Lokalized JavaScript — Version 1.0.0
Guides and examples
All versions
Preparing search index...
lokalized/node
loadEntireManifestFromFiles
Function loadEntireManifestFromFiles
loadEntireManifestFromFiles
(
manifest
:
StringsManifestV1
,
options
?:
LoadStringsFromFilesOptions
,
)
:
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"
;
}
,
>
[]
;
}
,
>
,
>
Load every file a manifest declares, read from disk, in normalized-tag order.
Parameters
manifest
:
StringsManifestV1
Optional
options
:
LoadStringsFromFilesOptions
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...
Load every file a manifest declares, read from disk, in normalized-tag order.