Skip to content

Instantly share code, notes, and snippets.

@wilkie
wilkie / example.rb
Created April 22, 2014 00:41
A dynamic natural language translation layer for ruby... an example:
require :spaES # <-- Select the stdlib locale
require 'stdlib' # <-- import the stdlib
# The above will be automatically done in practice, but it is just listed here
# as an illustration. This is because after this point, you need to use the term
# importar to import.
# As in: importar 'some-library'
# Only THIS file uses the function name table in español. Other files and existing libraries
# assuming the original or a different natural language are functionally unaffected. It is