Skip to content

Commit 2ca7af4

Browse files
committed
Updates translator
1 parent 2885d56 commit 2ca7af4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pendulum/translator.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class Translator(object):
99
def __init__(self, locale):
1010
self._locale = self._format_locale(locale)
1111
self._translations = TRANSLATIONS
12-
self._fallback_locale = 'en'
1312

1413
@property
1514
def locale(self):
@@ -55,10 +54,6 @@ def transchoice(self, id, number, parameters=None, locale=None):
5554
while not self.has_translations(locale):
5655
fallback = locale.split('_')[0]
5756
if locale == fallback:
58-
if self._fallback_locale and locale != self._fallback_locale:
59-
locale = self._fallback_locale
60-
continue
61-
6257
raise ValueError('Locale [{}] could not be found.'.format(locale))
6358

6459
locale = fallback

0 commit comments

Comments
 (0)