mirror of
https://github.com/status-im/react-native-languages.git
synced 2025-01-27 16:34:54 +00:00
Export language
This commit is contained in:
parent
d633b1ac6c
commit
60338ff304
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,3 +13,5 @@ Desktop.ini
|
||||
.vscode/
|
||||
|
||||
android/build/
|
||||
|
||||
*.swp
|
||||
|
@ -70,7 +70,7 @@ QList<ModuleMethod*> RNLanguages::methodsToExport() {
|
||||
}
|
||||
|
||||
QVariantMap RNLanguages::constantsToExport() {
|
||||
return QVariantMap{{"languages", d_ptr->languages()}};
|
||||
return QVariantMap{{"languages", d_ptr->languages()}, {"language", d_ptr->languages()[0]}};
|
||||
}
|
||||
|
||||
void RNLanguages::setBridge(Bridge* bridge) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user