import i18n from 'i18n'
import path from 'path'

/**
 * To execute the script
 * $ node script.js en --> Start with 'en' locale
 * $ node script.js de --> Start with 'de' locale
 */

const args = process.argv.slice(2);
i18n.configure({
  locales: ['en', 'de'],
  defaultLocale: 'en',
  directory: path.join('./', 'locales'),
  api: {
    '__': 'translate',
    '__n': 'translateN'
  },
})
i18n.setLocale(args[0])

console.log(i18n.__('phrase.hello'))
console.log(i18n.__('phrase.greeting'))
console.log(i18n.__('phrase.introduce'), 'Kohei')
console.log(i18n.__n('phrase.apple', 1))

@@ -480,24 +480,27 @@
 greeting'))%0A
+// 
 console.log(
@@ -503,83 +503,74 @@
 log(
-i18n.__('phrase.introduce'), 'Kohei')%0Aconsole.log(i18n.__n('phrase.apple', 1))
+) // For '3. Placeholders'%0A// console.log() // For '4. Pluralization'
 %0A

Remove code