<!doctype html> <html ng-app="demoGettext"> <head> <meta charset="utf-8"> <title>AngularJS gettext i18n Demo</title> </head> <body> <div> <button ng-click="i18nLocale = 'en'">English</button> <button ng-click="i18nLocale = 'zh_TW'">傳統中文</button> <button ng-click="i18nLocale = 'vi_VN'">Tiếng Việt</button> </div> <br> <div> <span>{{_("Home")}}</span> <br> <span>{{_("Canon")}}</span> </div> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script> <script src="ngGettextData.js"></script> <script src="ngGettext.js"></script> <script src="app.js"></script> </body> </html>