Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

実際にサイトにiframe埋め込みすると英語にならない。他 #1940

Open
@nichesuch

Description

起こっている問題 / The Problem

  • 英語版のiframeの埋め込みコードをコピーしてサイトに貼り付けると日本語で表示される。
  • ローディングも表示される。
  • URLに直接アクセスすると、ローディングは表示されず、英語で表示される。

スクリーンショット / Screenshot

スクリーンショット 2020-03-20 21 03 28

  都営地下鉄の利用者数の推移 日本語<br/>
  https://stopcovid19.metro.tokyo.lg.jp/cards/predicted-number-of-toei-subway-passengers?embed=true<br/>
  <iframe width="560" height="315" src="https://stopcovid19.metro.tokyo.lg.jp/cards/predicted-number-of-toei-subway-passengers?embed=true" frameborder="0"></iframe><br/>
  都営地下鉄の利用者数の推移 英語<br/>
  https://stopcovid19.metro.tokyo.lg.jp/en/cards/predicted-number-of-toei-subway-passengers?embed=true<br/>
  <iframe width="560" height="315" src="https://stopcovid19.metro.tokyo.lg.jp/en/cards/predicted-number-of-toei-subway-passengers?embed=true" frameborder="0"></iframe><br/>

期待する見せ方・挙動 / Expected Behavior

  • iframeに埋め込んだ場合も直接アクセスした時と同じ動作になる。
    • ローディングが表示されない。
    • サイドナビゲーションが表示されない。
    • 翻訳されて表示される。

スクリーンショット 2020-03-20 21 10 27

起こっている問題の再現手段 / Steps to Reproduce

  1. https://stopcovid19.metro.tokyo.lg.jp/enにアクセス
  2. 埋め込みコードをコピー
  3. 自分のサイトに貼り付け
  4. 自分のサイトにアクセス

動作環境・ブラウザ / Environment

  • macOS
  • Chrome

Metadata

Assignees

No one assigned

    Labels

    bugバグ。本来あるべき動作をしていないものi18n多言語関連の Issue や Pull Request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions