Apply the same optimization than VScode in vscode.dev, which replaces string translation keys by their indexes within the module
in the localization file:
{
"vs/common/random/module": {
"some.random.translation.key": "The actual wording",
"some.other.translation.key": "The other wording"
}
}
is replaced by
{
"vs/common/random/module": [
"The actual wording",
"The other wording"
]
}
and in the modules:
localizeWithPath(moduleId, "some.random.translation.key", "The default wording")
is replaced by
localizeWithPath(moduleId, 0, "The default wording")
This PR:
reduce the size of the main package alone by about 400ko (not counting the service override packages)
reduce each localization package by about 300ko
Note that the localization keys can't be minified and neither be compressed very well (each key is different) so the final compressed size ratio should be even bigger
Apply the same optimization than VScode in vscode.dev, which replaces string translation keys by their indexes within the module
in the localization file:
is replaced by
and in the modules:
is replaced by
This PR:
Note that the localization keys can't be minified and neither be compressed very well (each key is different) so the final compressed size ratio should be even bigger