Extracted strings and fixes on localization support
Language chooser in the UI
This commit is contained in:
parent
9f449c0a2f
commit
dc7789c17b
126 changed files with 2919 additions and 2028 deletions
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
import React, {Component} from 'react';
|
||||
import {translate} from 'react-i18next';
|
||||
import { withTranslation } from './i18n';
|
||||
import PropTypes
|
||||
from "prop-types";
|
||||
import styles
|
||||
|
@ -11,7 +11,7 @@ import {UntrustedContentHost} from './untrusted';
|
|||
import {Icon} from "./bootstrap-components";
|
||||
import {getTrustedUrl} from "./urls";
|
||||
|
||||
@translate(null, { withRef: true })
|
||||
@withTranslation({delegateFuns: ['exportState']})
|
||||
export class GrapesJSHost extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
@ -73,7 +73,3 @@ export class GrapesJSHost extends Component {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
GrapesJSHost.prototype.exportState = async function() {
|
||||
return await this.getWrappedInstance().exportState();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue