nova-page icon indicating copy to clipboard operation
nova-page copied to clipboard

Nova translations for tool lines

Open alex-osborn opened this issue 5 years ago • 1 comments

Great work with the package.

Currently the Nova tool label can be customised with config('novapage.label').

However, other strings in the tool are hard-coded and cannot be updated.

Screen Shot 2019-03-09 at 4 14 29 PM

Most of these could be run through translations to allow this, such as changing Whitecube\NovaPage\Pages\Resource::singularLabel()

    /**
     * Get the displayable singular label of the resource.
     *
     * @return string
     */
    public static function singularLabel()
    {
        return 'nova-page';
    }
    /**
     * Get the displayable singular label of the resource.
     *
     * @return string
     */
    public static function singularLabel()
    {
        return __('nova-page');
    }

alex-osborn avatar Mar 09 '19 03:03 alex-osborn