Created
August 3, 2017 06:23
-
-
Save dixonsiu/5e12aabf74557d367eff558ad5445f3a to your computer and use it in GitHub Desktop.
i18next tipsその1 ref: http://qiita.com/dixonsiu/items/a203752562d251ab143d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('dispMsg').html(i18next.t("msg.error.fileNotFound"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="dispMsg">File not found.</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i18next.changeLanguage("ja"); | |
$('[data-i18n]').localize(); // need jQuery-i18next |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="dispMsg">File not found.</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#dispMsg').attr("data-i18n", "msg.error.fileNotFound") | |
.localize(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="dispMsg" data-i18n="msg.error.fileNotFound">File not found.</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i18next.changeLanguage("ja"); | |
$('[data-i18n]').localize(); // need jQuery-i18next |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="dispMsg" data-i18n="msg.error.fileNotFound">ファイルがないです。</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment