<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>griefworker</author_name>
  <author_url>https://blog.hatena.ne.jp/griefworker/</author_url>
  <blog_title>present</blog_title>
  <blog_url>https://tnakamura.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>JavaScript</anon>
    <anon>Rails</anon>
  </categories>
  <description>はじめに Rails で JavaScript を国際化するには、『i18n-js』という gem を使う。 fnando/i18n-js 自分が作っている Web アプリでそこまでやる必要性は無いかもしれないけど、 国際化せずに直接 HTML や JavaScript のメッセージに日本語を書き込むのは、何かに負けた気がするんで、やってみた。 i18n-js のインストール Gemfile に gem &quot;i18n-js&quot; を追加し、シェルで bundle を実行すればインストールできる。 i18n-js を有効にする Rails3.1 以降を使っていることが前提。 まず、app/assets…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftnakamura.hatenablog.com%2Fentry%2F2013%2F03%2F16%2F201338&quot; title=&quot;Rails で JavaScript を国際化する - present&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/g/griefworker/20130316/20130316195058.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-03-16 20:13:38</published>
  <title>Rails で JavaScript を国際化する</title>
  <type>rich</type>
  <url>https://tnakamura.hatenablog.com/entry/2013/03/16/201338</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
