Lokalized JavaScript — Version 1.0.0
Guides and examples
All versions
Preparing search index...
lokalized/node
readStringsFromDirectory
Function readStringsFromDirectory
readStringsFromDirectory
(
directory
:
string
,
options
?:
{
limits
?:
Readonly
<
{
maximumInputBytes
?:
number
;
maximumJsonNestingDepth
?:
number
;
maximumLocalizedStringsFiles
?:
number
;
maximumReaderCharacters
?:
number
;
maximumTotalInputBytes
?:
number
;
maximumTranslationNodes
?:
number
;
maximumWarnings
?:
number
;
}
,
>
;
maximumDiscoveryEntries
?:
number
;
pluralData
?:
Readonly
<
{
ordinal
?:
unknown
;
ranges
?:
unknown
}
>
;
warningHandler
?:
(
warning
:
Readonly
<
{
key
:
string
;
locale
:
string
;
message
:
string
;
missingLanguageForms
:
readonly
string
[]
;
placeholder
:
string
;
source
:
string
;
type
:
|
"INCOMPLETE_CARDINALITY_TRANSLATIONS"
|
"INCOMPLETE_ORDINALITY_TRANSLATIONS"
;
}
,
>
,
)
=>
void
;
}
,
)
:
{
catalogs
:
Record
<
string
,
ParsedStringsFile
>
;
warnings
:
readonly
unknown
[]
;
}
Read and parse every localized strings file in one directory.
Parameters
directory
:
string
Optional
options
:
{
limits
?:
Readonly
<
{
maximumInputBytes
?:
number
;
maximumJsonNestingDepth
?:
number
;
maximumLocalizedStringsFiles
?:
number
;
maximumReaderCharacters
?:
number
;
maximumTotalInputBytes
?:
number
;
maximumTranslationNodes
?:
number
;
maximumWarnings
?:
number
;
}
,
>
;
maximumDiscoveryEntries
?:
number
;
pluralData
?:
Readonly
<
{
ordinal
?:
unknown
;
ranges
?:
unknown
}
>
;
warningHandler
?:
(
warning
:
Readonly
<
{
key
:
string
;
locale
:
string
;
message
:
string
;
missingLanguageForms
:
readonly
string
[]
;
placeholder
:
string
;
source
:
string
;
type
:
|
"INCOMPLETE_CARDINALITY_TRANSLATIONS"
|
"INCOMPLETE_ORDINALITY_TRANSLATIONS"
;
}
,
>
,
)
=>
void
;
}
Returns
{
catalogs
:
Record
<
string
,
ParsedStringsFile
>
;
warnings
:
readonly
unknown
[]
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Guides and examples
All versions
Lokalized JavaScript — Version 1.0.0
Loading...
Read and parse every localized strings file in one directory.