Class: LocaleProvider

LocaleProvider(props)

Provides messaging context down the component tree. Usefull with oskari-ui/Message component.

Constructor

new LocaleProvider(props)

Parameters:
Name Type Description
props Object { bundleKey, getMessage:optional }
Source:
See:
Example
import { Message } from 'oskari-ui';
import { LocaleProvider } from 'oskari-ui/util';

const Greeting = () => (
    <LocaleProvider value={{bundleKey: 'helloworld'}}>
        <Message messageKey="hello" messageArgs={['Jack']}/>
    </LocaleProvider>
);