8 lines
231 B
JavaScript
8 lines
231 B
JavaScript
|
import locale from './locale';
|
||
|
export default function setLocale(custom) {
|
||
|
Object.keys(custom).forEach(type => {
|
||
|
Object.keys(custom[type]).forEach(method => {
|
||
|
locale[type][method] = custom[type][method];
|
||
|
});
|
||
|
});
|
||
|
}
|