Overriding Translations


Related Links

Introduction

Overriding translations provides a powerful method of extending and/or customizing addon and streams platform translation key values.

Translation file overrides are recursively merged into the originals.

Publishing Addons

To get started first publish the desired addon:

php artisan addon:publish anomaly.module.posts

You can find the published files in your application resources directory:

/resources/{app_reference}/addons/{vendor}/{addon}-{type}/lang/

Simply change the translation files as needed or add new ones. Then delete whatever files you don't need to override.

Streams Platform Views

You can publish and override translation files in the streams platform following a similar pattern:

php artisan streams:publish

The published files are again in your application resources directory:

/resources/{app_reference}/streams/lang/