british_american_translate

2.0.1 • Public • Published

british_american_translate

Translate strings between British (en_GB) and American (en_US) English

const translate = require("british_american_translate");
 
// translate UK to USA
const ukString = "I'm visualising the colour of this yoghurt";
console.log(translate.uk2us(ukString)); // "I'm visualizing the color of this yogurt"
 
// translate USA to UK
const usString = "I'm visualizing the color of this yogurt";
console.log(translate.us2uk(usString)); // "I'm visualising the colour of this yoghurt"

Errors return null

License

(C) 2018-19 P. Hughes. All rights reserved.

Shared under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported license.

Readme

Keywords

none

Package Sidebar

Install

npm i british_american_translate

Weekly Downloads

54

Version

2.0.1

License

CC-BY-NC-SA-3.0

Unpacked Size

74.7 kB

Total Files

5

Last publish

Collaborators

  • phughes