mirror of
https://github.com/appium/appium-desktop.git
synced 2026-10-25 00:50:29 +08:00
11 lines
259 B
JavaScript
11 lines
259 B
JavaScript
import { withTranslation as wt } from 'react-i18next';
|
|
import _ from 'lodash';
|
|
import config from '../configs/app.config';
|
|
|
|
export function withTranslation (componentCls, ...hocs) {
|
|
return _.flow(
|
|
...hocs,
|
|
wt(config.namespace),
|
|
)(componentCls);
|
|
}
|