Use the Locales helper to manage available locales
mainThe \Astrotomic\Translatable\Locales class is a singleton service that manages all locales available for translation. It can be accessed via the translatable.locales service container binding or by instantiating the class directly. It implements ArrayAccess, allowing it to be used like a standard array.
Use this helper to check for, add, or remove locales at runtime without needing to modify the underlying configuration file.