-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b76e36
commit 9eed0d4
Showing
8 changed files
with
117 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,7 +212,8 @@ | |
} | ||
}, | ||
"patchedDependencies": { | ||
"[email protected]": "patches/[email protected]" | ||
"[email protected]": "patches/[email protected]", | ||
"[email protected]": "patches/[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/lib/po.js b/lib/po.js | ||
index 0e2e35d8ffb4d1119a02714c684ae45200ab0a7d..bb9f1a434b2080212d41e65f7e434e0e4560462d 100644 | ||
--- a/lib/po.js | ||
+++ b/lib/po.js | ||
@@ -11,7 +11,9 @@ var PO = function () { | ||
}; | ||
|
||
PO.prototype.save = function (filename, callback) { | ||
+ try { | ||
require('fs').writeFile(filename, this.toString(), callback); | ||
+ } catch(e) {console.log('error on po file load (expected in RN)')} | ||
}; | ||
|
||
PO.prototype.toString = function () { | ||
@@ -63,6 +65,7 @@ PO.prototype.toString = function () { | ||
}; | ||
|
||
PO.load = function (filename, callback) { | ||
+ try { | ||
require('fs').readFile(filename, 'utf-8', function (err, data) { | ||
if (err) { | ||
return callback(err); | ||
@@ -70,6 +73,7 @@ PO.load = function (filename, callback) { | ||
var po = PO.parse(data); | ||
callback(null, po); | ||
}); | ||
+ } catch(e) {console.log('error on po file load (expected in RN)')} | ||
}; | ||
|
||
PO.parse = function (data) { |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.