lib/head_music.rb in head_music-0.24.0 vs lib/head_music.rb in head_music-0.24.1

- old
+ new

@@ -10,11 +10,24 @@ require 'head_music/version' require 'active_support/core_ext/module/delegation' require 'active_support/core_ext/string/access' require 'humanize' +require 'i18n' +require 'i18n/backend/fallbacks' +I18n::Backend::Simple.include I18n::Backend::Fallbacks +I18n.load_path << Dir[File.join(File.dirname(__dir__), 'lib', 'head_music', 'locales', '*.yml')] +I18n.config.available_locales = %i[en de fr it es en_US en_GB] +I18n.default_locale = :en +I18n.fallbacks[:de] = %i[de en_GB en] +I18n.fallbacks[:en_US] = %i[en_US en en_GB] +I18n.fallbacks[:en_GB] = %i[en_GB en en_US] +I18n.fallbacks[:es] = %i[es en] +I18n.fallbacks[:fr] = %i[fr en_GB en] +I18n.fallbacks[:it] = %i[it en_GB en] + # utilities require 'head_music/utilities/hash_key' # modules require 'head_music/named' @@ -48,9 +61,10 @@ require 'head_music/rhythmic_unit' require 'head_music/scale' require 'head_music/scale_degree' require 'head_music/scale_type' require 'head_music/sign' +require 'head_music/solmization' require 'head_music/sonority' require 'head_music/spelling' require 'head_music/staff' require 'head_music/tuning'