diff --git a/README.md b/README.md index 7eabf3c2a..cd224224c 100644 --- a/README.md +++ b/README.md @@ -178,6 +178,25 @@ _Requests with Pre-Request Scripts are indicated in History entries_ - Copy Request Link Ctrl + K - Reset Request Ctrl + L +🌎 **i18n**: Internationalization β. + + - Add a new locale in `lang/` + - Ex: `lang/es-ES.js` + - Mention `code`, `name`, `iso` and `file` in `nuxt.config.js` + + ``` + i18n: { + locales: [{ + code: 'es', + name: 'Español', + iso: 'es-ES', + file: 'es-ES.js' + }] + } + ``` + +_**All contributions are welcome to `i18n` [branch](https://github.com/liyasthomas/postwoman/tree/i18n) only!**_ + **To find out more, please check out [Postwoman Wiki](https://github.com/liyasthomas/postwoman/wiki).** ## Demo 🚀 [![Website](https://img.shields.io/website?url=https%3A%2F%2Fpostwoman.io&logo=Postwoman)](https://postwoman.io) diff --git a/lang/id-ID.js b/lang/id-ID.js new file mode 100644 index 000000000..c69f0c682 --- /dev/null +++ b/lang/id-ID.js @@ -0,0 +1,3 @@ +export default { + send: 'Kirim' +} diff --git a/nuxt.config.js b/nuxt.config.js index f7579ec35..9564f6a8f 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -314,6 +314,12 @@ export default { name: '简体中文', iso: 'zh-CN', file: 'zh-CN.js' + }, + { + code: 'id', + name: 'Bahasa Indonesia', + iso: 'id-ID', + file: 'id-ID.js' } ], defaultLocale: 'en', diff --git a/pages/index.vue b/pages/index.vue index 581dd722f..d6555efb9 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1488,7 +1488,7 @@ export default { // We make our temporary headers object the source so // that you can override the added headers if you // specify them. - headers + // headers ); Object.keys(headers).forEach(id => { diff --git a/tests/e2e/integration/app.starter.spec.js b/tests/e2e/integration/app.starter.spec.js deleted file mode 100644 index 7e1945ec6..000000000 --- a/tests/e2e/integration/app.starter.spec.js +++ /dev/null @@ -1,7 +0,0 @@ -describe('Visit home', () => { - it('Have a page title with "Postwoman"', () => { - cy.visit('/') - .get('title') - .should('contain','Postwoman') - }) -})