Spaces:
Running
Running
Salman11223
commited on
Update translator.py
Browse files- translator.py +4 -4
translator.py
CHANGED
@@ -15,8 +15,8 @@ class translation:
|
|
15 |
self.lan_code = 'en'
|
16 |
elif original_language == 'German':
|
17 |
self.lan_code = 'de'
|
18 |
-
elif original_language == '
|
19 |
-
self.lan_code = '
|
20 |
elif original_language == 'Spanish':
|
21 |
self.lan_code = 'es'
|
22 |
else:
|
@@ -27,8 +27,8 @@ class translation:
|
|
27 |
self.tran_code = 'en'
|
28 |
elif target_language == 'German':
|
29 |
self.tran_code = 'de'
|
30 |
-
elif target_language == '
|
31 |
-
self.tran_code = '
|
32 |
elif target_language == 'Spanish':
|
33 |
self.tran_code = 'es'
|
34 |
else:
|
|
|
15 |
self.lan_code = 'en'
|
16 |
elif original_language == 'German':
|
17 |
self.lan_code = 'de'
|
18 |
+
elif original_language == 'Italian':
|
19 |
+
self.lan_code = 'it'
|
20 |
elif original_language == 'Spanish':
|
21 |
self.lan_code = 'es'
|
22 |
else:
|
|
|
27 |
self.tran_code = 'en'
|
28 |
elif target_language == 'German':
|
29 |
self.tran_code = 'de'
|
30 |
+
elif target_language == 'Italian':
|
31 |
+
self.tran_code = 'it'
|
32 |
elif target_language == 'Spanish':
|
33 |
self.tran_code = 'es'
|
34 |
else:
|