diff --git a/public/doc/advanced/i18n.md b/public/doc/advanced/i18n.md index 0e932d34..db3a2dcb 100644 --- a/public/doc/advanced/i18n.md +++ b/public/doc/advanced/i18n.md @@ -4,25 +4,23 @@ Cusdis comment widget has international support. But for keeping the SDK lightwe ## Usage -Before the sdk script, add locale specific script: - -```js -
- - +Before the sdk script, add locale specific script: `https://cusdis.com/js/widget/lang/{LANG_CODE}.js`, for example: + +```diff +
++ + ``` -All availabe locale files are in https://cusdis.com/js/widget/lang/LANG_CODE.js - > Make sure the locale specific script is loaded before the sdk. -> Should change the script host to your own server if you are using self-host Cusdis. +> Should change the script host to your own server if you are using self-host Cusdis. (e.g. `https://your-domain.com/js/widget/lang/zh-cn.js` ) ## Current support language @@ -42,6 +40,6 @@ window.CUSDIS_LOCALE = { } ``` -You can find all available keys in `widget/lang/en.js`. +You can find all available keys in https://github.com/djyde/cusdis/blob/master/widget/lang/en.js. Feel free to create a PR!