File size: 316 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import { get } from 'lodash';

import 'calypso/state/ui/init';

/**
 * Gets the current ui locale variant
 * @param {Object} state - global redux state
 * @returns {string?} current state value
 */
export default function getCurrentLocaleVariant( state ) {
	return get( state, 'ui.language.localeVariant', null );
}