userfrosting/i18n

Factor translate() into smaller methods

Closed this issue · 0 comments

I would even suggest splitting the code into multiple classes. Perhaps a Loader and Translator class, kind of like the way Twig separates the file loading from the rendering.