No, loading dictionaries with AJAX is not different from loading arrays or any other files.
You are probably trying to get the key before the dictionary is loaded. AJAX request is asynchronous, you need to wait for it to be completed before accessing the dictionary.