# Learning Angular: Set your language culture before any UI is displayed

DevFeed: [Learning Angular: Set your language culture before any UI is displayed](<https://devfeed.tech/articles/learning-angular-set-your-language-culture-before-any-ui-is-displayed-21239.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2015/03/learning-ng-angular-translate-promises/>)

Published: 2015-03-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [Angular](<https://devfeed.tech/topics/angular.md>), [Internationalization (i18n)](<https://devfeed.tech/topics/i18n.md>), [Localization (l10n)](<https://devfeed.tech/topics/localization.md>), [Promise](<https://devfeed.tech/topics/promise.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [angular](<https://devfeed.tech/tags/angular.md>), [api](<https://devfeed.tech/tags/api.md>), [backend](<https://devfeed.tech/tags/backend.md>), [code](<https://devfeed.tech/tags/code.md>), [language](<https://devfeed.tech/tags/language.md>), [locale](<https://devfeed.tech/tags/locale.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

This tutorial explains how to set a user's language and load angular-translate locale files before Angular renders the UI. It uses a client-side route's resolve function, which returns a promise, to prevent flickering and incorrect localized data, and notes that backend calls should be cached.

## Source excerpt

Lorem ipsum dolor sit amet