mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
10 lines
207 B
Python
10 lines
207 B
Python
from titanembeds.utils import babel
|
|
from flask import request
|
|
|
|
LANGUAGES = {
|
|
'en-US': 'English'
|
|
}
|
|
|
|
@babel.localeselector
|
|
def get_locale():
|
|
return request.accept_languages.best_match(LANGUAGES.keys()) |