зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1827928 - Add localizations field to NimbusEnrollment schema r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D175369
This commit is contained in:
Родитель
05d39f2f87
Коммит
d5dadc251e
|
@ -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": [
|
||||
|
|
Загрузка…
Ссылка в новой задаче