Rails Internationalization (I18n) API ã® i18n ã gem ã§ã¤ã³ã¹ãã¼ã«ããã $ sudo gem install i18n i18n ãåæåãã¦ãã±ã¼ã«ãèªã¿è¾¼ããã¡ã¤ã«ãä½æããã $ vi config/initializers/init_i18n.rb # 以ä¸ã®ããã«è¨è¿°ãã I18n.default_locale = 'ja-JP' LOCALES_DIRECTORY = "#{RAILS_ROOT}/config/locales/" LOCALES_AVAILABLE = Dir["#{LOCALES_DIRECTORY}/*.{rb,yml}"].collect do |locale_file| File.basename(File.basename(locale_file, ".rb"), ".yml") end.uniq.
{{#tags}}- {{label}}
{{/tags}}