Skip to content

There is a localized text for all languages declared in the configuration (MultilingualStringHasAllDeclaredLanguages)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Error BSL Minor Yes 2 error
localize

Parameters

Name Type Description Default value
declaredLanguages String Declared languages ru

Description

NStr in a multilingual configuration has different fragments for different languages. If you start a session under a language code that is not in the string passed to NStr, it will return an empty string.

Sources

Snippets

Diagnostic ignorance in code

// BSLLS:MultilingualStringHasAllDeclaredLanguages-off
// BSLLS:MultilingualStringHasAllDeclaredLanguages-on

Parameter for config

"MultilingualStringHasAllDeclaredLanguages": {
    "declaredLanguages": "ru"
}