Aeon-Avinash commited on
Commit
c96c4a2
1 Parent(s): 8553d28

Update lang_codes.py

Browse files
Files changed (1) hide show
  1. lang_codes.py +3 -3
lang_codes.py CHANGED
@@ -40,7 +40,7 @@ def generate_lang_code_file():
40
  json_data = json.dumps(languages, indent=4)
41
 
42
  # Save the JSON data to a file
43
- file_path = '/teamspace/studios/this_studio/multi-lang-translator/flores_language_codes.json'
44
  with open(file_path, 'w') as file:
45
  file.write(json_data)
46
 
@@ -49,7 +49,7 @@ def generate_lang_code_file():
49
  # generate_lang_code_file()
50
 
51
  def get_language_code(language_name,
52
- json_file_path='/teamspace/studios/this_studio/multi-lang-translator/flores_language_codes.json'):
53
  # Load the JSON data from the file
54
  with open(json_file_path, 'r') as file:
55
  languages = json.load(file)
@@ -62,7 +62,7 @@ def get_language_code(language_name,
62
  return None # Return None if the language name is not found
63
 
64
  def get_language_list(
65
- json_file_path='/teamspace/studios/this_studio/multi-lang-translator/flores_language_codes.json'):
66
  # Load the JSON data from the file
67
  with open(json_file_path, 'r') as file:
68
  languages = json.load(file)
 
40
  json_data = json.dumps(languages, indent=4)
41
 
42
  # Save the JSON data to a file
43
+ file_path = 'flores_language_codes.json'
44
  with open(file_path, 'w') as file:
45
  file.write(json_data)
46
 
 
49
  # generate_lang_code_file()
50
 
51
  def get_language_code(language_name,
52
+ json_file_path='flores_language_codes.json'):
53
  # Load the JSON data from the file
54
  with open(json_file_path, 'r') as file:
55
  languages = json.load(file)
 
62
  return None # Return None if the language name is not found
63
 
64
  def get_language_list(
65
+ json_file_path='flores_language_codes.json'):
66
  # Load the JSON data from the file
67
  with open(json_file_path, 'r') as file:
68
  languages = json.load(file)