This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(refresh): it has to clear all tables if no language key is specified
The `$translate.refresh()` method has to clear all tables if no language key is specified. In other case it may cause inconsistent state of different translation tables inside the module. Fixes the following case: // The 'A' language is not a fallback language * $translate.use('A'); * $translate.use('B'); * $translate.refresh(); // only 'B' language is refreshed * $translate.use('A'); // old translation table is used instead of fetching a new one Related to #988.
- Loading branch information
Showing
2 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters