1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Rails】ja.ymlについて

Posted at

記事概要

Ruby on Railsにて多言語対応するためのファイルについて、まとめる

前提

  • Ruby on Railsでアプリケーションを作成している

基本情報

ファイルパス

config/locales/ja.yml

ファイル生成方法

config/localesディレクトリに、ファイルja.ymlを新規作成する

まとめ

年月日と時刻の設定

ja.yml
ja:
  time:
    formats:
      default: "%Y/%m/%d %H:%M:%S"
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?