<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryhmrt</author_name>
  <author_url>https://blog.hatena.ne.jp/ryhmrt/</author_url>
  <blog_title>ryhmrt’s blog</blog_title>
  <blog_url>https://blog.ryhmrt.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>フィリピンでシステムを作って日本に納めるために、英語版を作って日本語化するというアプローチを取っているのだけれど、React.jsをシステムに取り入れたところJavaScriptでローカライズする必要が生じて、えいやっとやってみました。 これで CakePHP と同じように __('Hoge') という感じでローカライズできるようになります。 同僚からは笑われましたが、ローカライズはお前の担当だから好きにしろとのことなのでこいつを正式採用することにします。 無駄に力を入れて、メッセージ定義ファイルから生成したJavaScriptをキャッシュしているのが個人的なネタポイントです。 ちなみに、一般…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ryhmrt.com%2Fentry%2F44735391&quot; title=&quot;CakePHP3のメッセージ定義でJavaScriptを多国語化 - ryhmrt’s blog&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-05-14 10:46:24</published>
  <title>CakePHP3のメッセージ定義でJavaScriptを多国語化</title>
  <type>rich</type>
  <url>https://blog.ryhmrt.com/entry/44735391</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
