We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acf7707 commit 48ae2ccCopy full SHA for 48ae2cc
src/Webform.js
@@ -20,7 +20,7 @@ Formio.registerComponent = Components.setComponent;
20
function getOptions(options) {
21
options = _.defaults(options, {
22
submitOnEnter: false,
23
- i18next: i18next
+ i18next,
24
});
25
if (!options.events) {
26
options.events = new EventEmitter({
@@ -68,7 +68,10 @@ export default class Webform extends NestedComponent {
68
}
69
else {
70
_.each(options.i18n, (lang, code) => {
71
- if (!i18n.resources[code]) {
+ if (code === 'options') {
72
+ _.merge(i18n, lang);
73
+ }
74
+ else if (!i18n.resources[code]) {
75
i18n.resources[code] = { translation: lang };
76
77
0 commit comments