0.0
No commit activity in last 3 years
No release in over 3 years
Translate strings in US english to UK spelling using a dictionary of almost 1800 words.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

uk_translator

Translate strings between US and UK english spelling using a dictionary of almost 1800 words. Pull requests are accepted if any missing words are found.

US to UK:

UkTranslator.us_to_uk("Prioritize your COLOR customizations")
 => "Prioritise your COLOUR customisations"

UK to US:

UkTranslator.uk_to_us("Prioritise your COLOUR customisations")
 => "Prioritize your COLOR customizations"

Limitations:

It will only translate words that are:

  • all lowercase
  • Properly Capitalized
  • ALL UPPERCASE

Installation:

Add to Gemfile:

gem 'uk_translator', git: 'https://github.com/envisialearning/uk_translator'

and

bundle install