语言更改时如何从RTL切换到LTR?

时间:2019-04-27 13:29:13

标签: html right-to-left

我正在设置一个新模板,当用户单击语言按钮时,我想支持多种语言,例如阿拉伯语和英语,我需要在模板中的RTL和LTR设置位置怎么做?

{
  "base": "semantic\\",
  "paths": {
    "source": {
      "config": "src/theme.config",
      "definitions": "src/definitions/",
      "site": "src/site/",
      "themes": "src/themes/"
    },
    "output": {
      "packaged": "dist/",
      "uncompressed": "dist/components/",
      "compressed": "dist/components/",
      "themes": "dist/themes/"
    },
    "clean": "dist/"
  },
  "permission": false,
  "autoInstall": false,
  "rtl": false,
  "version": "2.4.2"
}

1 个答案:

答案 0 :(得分:0)

您可以使用具有双向CDN的rtlcss项目。

https://cdn.rtlcss.com/semantic-ui/2.4.1/semantic.rtl.css

https://cdn.rtlcss.com/semantic-ui/2.4.1/semantic.css