There may be ways to do this the way you want, for example overriding templateCache instead of changing routing, but I will look at this problem differently.
In your approach, as your site grows, it will be very difficult to maintain (at least) 2 copies of the templates. If you support more languages, then you will be in trouble much shorter.
I would create a service that stores the dictionary as objects for languages.
angular.module("myApp", []) .factory("Internationalization", function () { var dict: { en_US: { hello: "Hello," }, fr_FR: { salut: "Salut," } }; var get = function (locale, key) { return formatdict[locale][key]; } return {get: get}; });
Then you can enter the service into the controller and attach it to the area.
This will help you get started, you can check this if you want string.format support.
source share