2.0.1 • Published 4 years ago

british_american_translate v2.0.1

Weekly downloads
1
License
CC-BY-NC-SA-3.0
Repository
-
Last release
4 years ago

#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.