Translations:Manual:Extension registration/Limitations/13/en

If it's the former, you unfortunately cannot use either global constants or class constants: global constants can't be set in extension.json, and class constants will get initialized too late to be used.