m-e-conroy / angular-dialog-service

A complete AngularJS service with controllers and templates for generating application modals and dialogs for use with Angular-UI-Bootstrap and Twitter Bootstrap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the translation for chinese does not work.

Agileaq opened this issue · comments

I added one line
`


English
Spanish
Chinese

` and changed the dialogTest.js file : `$scope.$watch('lang',function(val,old){ switch(val){ case 'en-US': $scope.language = 'English'; break; case 'es': $scope.language = 'Spanish'; break; ** case 'zh-CN': $scope.language = 'Chinese'; break;** } });` then I run index.html and click on the btn, I get gibberish...

giblish

Did you add the translations for Chinese?

This doesn't automatically translate text for you like Google Translate. You need to supply the translations, all that happens is a substitution by Angular-Translate when the language setting is changed.