Replace condition with regex in untranslated keys test

Per comment https://github.com/oaeproject/3akai-ux/pull/3231/files#r7058269 a condition can to be replaced with a regular expression.