string externalization
This commit is contained in:
parent
8d461adb8b
commit
988c5df598
|
@ -1,6 +1,6 @@
|
||||||
```
|
```
|
||||||
const data = new Uint8Array(Buffer.from('Hello Node.js'));
|
const data = new Uint8Array(Buffer.from('Hello Node.js'));
|
||||||
fs.writeFile('message.txt', data, (err) => {
|
fs.writeFile('message.txt', gettext("Hello World"), (err) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
console.log('The file has been saved!');
|
console.log('The file has been saved!');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue