This gist shows how to use CSS writing modes for supporting both latin and asian writing modes.
Initially the latin mode is loaded, then the asian mode can be enabled using the switch on the top right.
xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>CSS writing modes for asian scripts</title>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-selection-multi.v0.4.min.js"></script>
<link rel="stylesheet" href="index.css">
</head>
<body>
<script src="index.js"></script>
</body>
</html>
https://d3js.org/d3.v4.min.js
https://d3js.org/d3-selection-multi.v0.4.min.js