| 1 | module veb |
| 2 | |
| 3 | import os |
| 4 | |
| 5 | fn test_load_files_translations() { |
| 6 | os.chdir(os.dir(@FILE))! |
| 7 | |
| 8 | translations := load_tr_map() |
| 9 | |
| 10 | assert 'pt-br' in translations |
| 11 | assert 'en' in translations |
| 12 | |
| 13 | assert 'msg_hello' in translations['pt-br'] |
| 14 | assert 'msg_hello' in translations['en'] |
| 15 | |
| 16 | assert translations['pt-br']['msg_hello'] == 'Olá' |
| 17 | assert translations['en']['msg_hello'] == 'Hello' |
| 18 | } |
| 19 |