Created
January 29, 2014 15:30
-
-
Save eveevans/8690350 to your computer and use it in GitHub Desktop.
Rails configuration for spanish Inflection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Be sure to restart your server when you modify this file. | |
# Add new inflection rules using the following format | |
# (all these examples are active by default): | |
ActiveSupport::Inflector.inflections do |inflect| | |
inflect.plural /([taeiou])$/, '\1s' | |
inflect.plural /([rlmnd])$/, '\1es' | |
inflect.singular /([taeiou])s$/, '\1' | |
inflect.singular /([aeiou][rlmnd])es$/, '\1' | |
inflect.uncountable 'pass' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment