Added helper and tests for picking out a language config