mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
store and use preferred language from user (#55)
This commit is contained in:
@@ -13,7 +13,8 @@ app.factory('$templateCache', ['$cacheFactory', '$http', '$injector', function($
|
||||
}
|
||||
|
||||
if (!allTplPromise) {
|
||||
allTplPromise = $http.get('templates/all-templates.html?${timestamp}').then(
|
||||
var lang = $('html').attr('lang');
|
||||
allTplPromise = $http.get('templates/all-templates.' + lang + '.html?${timestamp}').then(
|
||||
function(response) {
|
||||
$injector.get('$compile')(response.data);
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user