mirror of
https://github.com/status-im/react-native-i18n.git
synced 2025-01-09 11:45:54 +00:00
Fixed exported constant to match version 0.0.8
This commit is contained in:
parent
ffaeb5eb84
commit
e4361722d5
@ -1,15 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2016, Canonical Ltd.
|
* Copyright (c) 2017-present, Status Research and Development GmbH.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* This source code is licensed under the BSD-style license found in the
|
* This source code is licensed under the BSD-style license found in the
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
* LICENSE file in the root directory of this source tree. An additional grant
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*
|
*
|
||||||
* Author: Justin McPherson <justin.mcpherson@canonical.com>
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "bridge.h"
|
#include "bridge.h"
|
||||||
@ -72,7 +69,8 @@ QList<ModuleMethod*> RNI18n::methodsToExport() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QVariantMap RNI18n::constantsToExport() {
|
QVariantMap RNI18n::constantsToExport() {
|
||||||
return QVariantMap{{"languages", d_ptr->languages()}};
|
QString locale = d_ptr->languages().count() > 0 ? d_ptr->languages().first().toString() : "en";
|
||||||
|
return QVariantMap{{"locale", locale}};
|
||||||
}
|
}
|
||||||
|
|
||||||
void RNI18n::setBridge(Bridge* bridge) {
|
void RNI18n::setBridge(Bridge* bridge) {
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Copyright (C) 2016, Canonical Ltd.
|
* Copyright (c) 2017-present, Status Research and Development GmbH.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* This source code is licensed under the BSD-style license found in the
|
* This source code is licensed under the BSD-style license found in the
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
* LICENSE file in the root directory of this source tree. An additional grant
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*
|
*
|
||||||
* Author: Justin McPherson <justin.mcpherson@canonical.com>
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef RNI18NDESKTOP_H
|
#ifndef RNI18NDESKTOP_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user