1. from django.core.management.base import BaseCommand, no_translations
    
  2. from django.utils import translation
    
  3. 
    
  4. 
    
  5. class Command(BaseCommand):
    
  6.     @no_translations
    
  7.     def handle(self, *args, **options):
    
  8.         return translation.get_language()