UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

13 lines (11 loc) 311 B
import { I18nProvider } from '../types'; export const defaultI18nProvider: I18nProvider = { translate: (key: string, options: any = {}) => { if (options._) { return options._; } return key; }, changeLocale: () => Promise.resolve(), getLocale: () => 'en', };