assign file content
This commit is contained in:
parent
3798e49f27
commit
c0b810ba8d
1 changed files with 4 additions and 1 deletions
|
@ -28,9 +28,12 @@ function saveMessage(message) {
|
|||
function checkMessageAndSave(message, messagesFilePath) {
|
||||
if (!knownMessages[message]) {
|
||||
knownMessages[message] = message;
|
||||
RNFS.writeFile(messagesFilePath, JSON.stringify(knownMessages, null, 2), 'utf8')
|
||||
const contents = JSON.stringify(knownMessages, null, 2);
|
||||
|
||||
RNFS.writeFile(messagesFilePath, contents, 'utf8')
|
||||
.then(() => {
|
||||
// successful write
|
||||
// send to transifex
|
||||
})
|
||||
.catch(err => {
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in a new issue