Socket
Book a DemoInstallSign in
Socket

british_american_translate

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

british_american_translate

Translate between UK (en_GB) and USA (en_USA) English

latest
npmnpm
Version
2.0.1
Version published
Weekly downloads
9
-71.87%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 16 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts