Are language files for plugins no longer supported?

I was looking into updating some Kirby 2 plugin and noticed that the Kirby 3 plugins I was looking at, all had their language translations stuffed into the Kirby::plugin(...) function.

Are language files that are placed into the sub-directory site/plugins/<name>/languages no longer supported, or are there other advantages for having the translations in the plugin file itself?

Can’t even remember how it was done in KIrby 2. But in Kirby 3 you extend the translations: https://getkirby.com/docs/reference/plugins/extensions/translations. Since the translations are only an array, you can, of course, but them into a return array in separate files, similar to what is described here: https://getkirby.com/docs/cookbook/i18n/language-variables