Open Graph多语言描述

时间:2017-12-02 19:30:54

标签: javascript html multilingual open-graph-protocol

我有关于为多种语言实现Open Graph元标记的问题。我在ASP.NET MVC上使用多重机制的Web项目。

  1. domailname.com - 英语语言
  2. domailname.com/pl-PL - 适用于波兰语
  3. domailname.com/ru-RU - 俄语
  4. 我需要为3种语言添加Open Graph元标记 我的一种英语语言示例:

    <meta property="og:title" content="Title Project" />
    <meta property="og:type" content="website" />
    <meta property="og:url" content="http://www.domainname.com" />
    <meta property="og:description" content="Description on English" />
    <meta property="og:locale" content="en_US" /> //default
    <meta property="og:image" content="url png for English verion">
    

    对于三种不同的语言,我需要添加三个不同的图片和三种不同的描述。

    也许我可以通过jQuery添加元标记注入,或者你有替代方法吗?

0 个答案:

没有答案