Bug 1827928 - Add localizations field to NimbusEnrollment schema r=emcminn

Differential Revision: https://phabricator.services.mozilla.com/D175369
This commit is contained in:
Barret Rennie 2023-04-13 19:01:06 +00:00
Родитель 05d39f2f87
Коммит d5dadc251e
2 изменённых файлов: 14 добавлений и 1 удалений

Просмотреть файл

@ -414,9 +414,12 @@ export class _ExperimentManager {
lastSeen: new Date().toJSON(),
featureIds,
prefs,
localizations,
};
if (localizations) {
experiment.localizations = localizations;
}
if (typeof isRollout !== "undefined") {
experiment.isRollout = isRollout;
}

Просмотреть файл

@ -209,6 +209,16 @@
},
"additionalProperties": false
}
},
"localizations": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"description": "Per-locale localization substitutions.\n\nThe top level key is the locale (e.g., \"en-US\" or \"fr\"). Each entry is a mapping of string IDs to their localized equivalents.\n\nOnly supported on desktop."
}
},
"required": [