1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Support for RN localisation

This commit is contained in:
Laurent Cozic
2017-07-19 22:26:30 +01:00
parent 0ed442930b
commit f529b9e3b9
10 changed files with 307 additions and 7 deletions

View File

@@ -32,6 +32,7 @@ import { SideMenu } from 'lib/components/side-menu.js';
import { SideMenuContent } from 'lib/components/side-menu-content.js';
import { DatabaseDriverReactNative } from 'lib/database-driver-react-native';
import { reg } from 'lib/registry.js';
import { _, setLocale } from 'lib/locale.js';
import RNFetchBlob from 'react-native-fetch-blob';
let defaultState = {
@@ -370,6 +371,9 @@ async function initialize(dispatch, backButtonHandler) {
reg.logger().info('Loading settings...');
await Setting.load();
// Setting.setValue('locale', 'fr_FR');
// setLocale(Setting.value('locale'));
reg.logger().info('Loading folders...');
await FoldersScreenUtils.refreshFolders();