mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Sort the keys in order to be more predictable (#164920)
sort the keys in order to be more predictable
This commit is contained in:
committed by
GitHub
parent
77381abe36
commit
0a80e31f6f
+1
-1
@@ -684,7 +684,7 @@ function createI18nFile(name, messages) {
|
||||
const i18nPackVersion = '1.0.0';
|
||||
function getRecordFromL10nJsonFormat(l10nJsonFormat) {
|
||||
const record = {};
|
||||
for (const key of Object.keys(l10nJsonFormat)) {
|
||||
for (const key of Object.keys(l10nJsonFormat).sort()) {
|
||||
const value = l10nJsonFormat[key];
|
||||
record[key] = typeof value === 'string' ? value : value.message;
|
||||
}
|
||||
|
||||
+1
-1
@@ -787,7 +787,7 @@ export interface TranslationPath {
|
||||
|
||||
function getRecordFromL10nJsonFormat(l10nJsonFormat: l10nJsonFormat): Record<string, string> {
|
||||
const record: Record<string, string> = {};
|
||||
for (const key of Object.keys(l10nJsonFormat)) {
|
||||
for (const key of Object.keys(l10nJsonFormat).sort()) {
|
||||
const value = l10nJsonFormat[key];
|
||||
record[key] = typeof value === 'string' ? value : value.message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user