@connectedcars/react-i18n
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -5,2 +5,2 @@ export { ReduxProvider as default, ReduxProvider } from './components/ReduxProvider'; | ||
export { setLanguage } from './redux/actions'; | ||
export { i18nReducer } from './redux/reducer'; | ||
export { i18nReducer, I18nState } from './redux/reducer'; |
import { AnyAction } from 'redux'; | ||
export declare const i18nReducer: (state: { | ||
export interface I18nState { | ||
lang: string; | ||
}, action: AnyAction) => { | ||
} | ||
export declare const i18nReducer: (state: I18nState, action: AnyAction) => { | ||
lang: any; | ||
}; |
{ | ||
"name": "@connectedcars/react-i18n", | ||
"author": "Connected Cars <oss@connectedcars.io>", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Translations!", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -5,2 +5,2 @@ export { ReduxProvider as default, ReduxProvider } from './components/ReduxProvider' | ||
export { setLanguage } from './redux/actions' | ||
export { i18nReducer } from './redux/reducer' | ||
export { i18nReducer, I18nState } from './redux/reducer' |
import { AnyAction } from 'redux' | ||
import { SET_LANGUAGE } from './constants' | ||
const initialState = { | ||
export interface I18nState { | ||
lang: string | ||
} | ||
const initialState: I18nState = { | ||
lang: 'en' | ||
@@ -14,4 +18,4 @@ } | ||
default: | ||
return state | ||
return state | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24909
594