How to get current selected language in a custom action that runs in the main function? I can't pass any arguments