Effortless Translations with AI in Laravel Nova             [ SharpAPI ![SharpAPI logo](https://sharpapi.com/build/assets/resources/images/logo200-C65na0V3.png) ](/)  Open main menu

  API Catalog

 [ E-commerce  ](/en/catalog/ai/e-commerce)APIs to streamline every aspect of e-commerce, from product details to customer engagement.

 [ Content &amp; Marketing Automation  ](/en/catalog/ai/content-marketing-automation)Automation tools for efficient content creation, audience engagement, moderation and marketing workflows.

 [ HR Tech  ](/en/catalog/ai/hr-tech)APIs designed to simplify recruitment, resume parsing, skill-matching, and candidate evaluation.

 [ Travel, Tourism &amp; Hospitality  ](/en/catalog/ai/travel-tourism-hospitality)Tools to enhance travel and hospitality services, from customer insights to product organization.

 [ SEO  ](/en/catalog/ai/seo)Solutions to automate your SEO essentials, including tags and metadata management.

 [ Accounting &amp; Finance  ](/en/catalog/ai/accounting-finance)AI endpoints for invoice processing, receipt parsing, and financial document analysis.

 [ Utility APIs  ](/en/catalog/utility)Robust databases and tools for enhancing applications with Travel &amp; HR industry-specific data.

 [ Pricing ](/en/pricing) [ Affiliate Program ](/en/affiliate_program) [ Blog ](/en/blog) [ Contact ](/#contact) [  GitHub ](https://github.com/sharpapi/ "GitHub")    English    [ Deutsch ](https://sharpapi.com/de/blog/post/effortless-translations-with-ai-in-laravel-nova) [ English ](https://sharpapi.com/en/blog/post/effortless-translations-with-ai-in-laravel-nova) [ español ](https://sharpapi.com/es/blog/post/effortless-translations-with-ai-in-laravel-nova) [ français ](https://sharpapi.com/fr/blog/post/effortless-translations-with-ai-in-laravel-nova) [ العربية ](https://sharpapi.com/ar/blog/post/effortless-translations-with-ai-in-laravel-nova) [ 简体中文 ](https://sharpapi.com/zh/blog/post/effortless-translations-with-ai-in-laravel-nova)

 [ Log in ](/dashboard) [ Sign up → ](/register)

 [ SharpAPI ![SharpAPI logo](https://sharpapi.com/build/assets/resources/images/logo200-C65na0V3.png) ](/en)  Close menu

  API Catalog    [ E-commerce ](/en/catalog/ai/e-commerce) [ Content &amp; Marketing Automation ](/en/catalog/ai/content-marketing-automation) [ HR Tech ](/en/catalog/ai/hr-tech) [ Travel, Tourism &amp; Hospitality ](/en/catalog/ai/travel-tourism-hospitality) [ SEO ](/en/catalog/ai/seo) [ Accounting &amp; Finance ](/en/catalog/ai/accounting-finance) [ Utility APIs ](/en/catalog/utility)

 [ Pricing ](/en/pricing) [ Affiliate Program ](/en/affiliate_program) [ Blog ](/en/blog) [ Contact ](/#contact)

    English    [ Deutsch ](https://sharpapi.com/de/blog/post/effortless-translations-with-ai-in-laravel-nova) [ English ](https://sharpapi.com/en/blog/post/effortless-translations-with-ai-in-laravel-nova) [ español ](https://sharpapi.com/es/blog/post/effortless-translations-with-ai-in-laravel-nova) [ français ](https://sharpapi.com/fr/blog/post/effortless-translations-with-ai-in-laravel-nova) [ العربية ](https://sharpapi.com/ar/blog/post/effortless-translations-with-ai-in-laravel-nova) [ 简体中文 ](https://sharpapi.com/zh/blog/post/effortless-translations-with-ai-in-laravel-nova)

 [ Sign up ](/register)

 [ Log in ](/dashboard)

 1. [    Home ](https://sharpapi.com/en)
2. [Blog](https://sharpapi.com/en/blog)
3. [Effortless Translations with AI in Laravel Nova](https://sharpapi.com/en/blog/post/effortless-translations-with-ai-in-laravel-nova)

 Topics / Categories:
--------------------

- [   ALL (27) ](https://sharpapi.com/en/blog)
- [  Workflow Optimization (16) ](https://sharpapi.com/en/blog/category/workflow-optimization)
- [  AI Automation (11) ](https://sharpapi.com/en/blog/category/ai-automation)
- [  HR Tech (9) ](https://sharpapi.com/en/blog/category/hr-tech)
- [  Tutorials (8) ](https://sharpapi.com/en/blog/category/tutorials)
- [  API Integration (7) ](https://sharpapi.com/en/blog/category/api-integration)
- [  Developer Tools (5) ](https://sharpapi.com/en/blog/category/developer-tools)
- [  Recruitment (5) ](https://sharpapi.com/en/blog/category/recruitment)
- [  News (5) ](https://sharpapi.com/en/blog/category/news)
- [  Business Efficiency (3) ](https://sharpapi.com/en/blog/category/business-efficiency)
- [  Productivity (3) ](https://sharpapi.com/en/blog/category/productivity)
- [  Customer Experience (2) ](https://sharpapi.com/en/blog/category/customer-experience)
- [  Marketing Technology (2) ](https://sharpapi.com/en/blog/category/marketing-technology)
- [  Content Marketing (2) ](https://sharpapi.com/en/blog/category/content-marketing)
- [  E-commerce (1) ](https://sharpapi.com/en/blog/category/e-commerce)
- [  Videos (1) ](https://sharpapi.com/en/blog/category/videos)
- [  API Marketplaces (1) ](https://sharpapi.com/en/blog/category/api-marketplaces)
- [  Travel Tech (1) ](https://sharpapi.com/en/blog/category/travel-tech)
- [  Compliance (1) ](https://sharpapi.com/en/blog/category/compliance)
- [  Security (1) ](https://sharpapi.com/en/blog/category/security)
- [  Affiliate Program (1) ](https://sharpapi.com/en/blog/category/affiliate-program)
- [  Finance (1) ](https://sharpapi.com/en/blog/category/finance)
- [  HR (1) ](https://sharpapi.com/en/blog/category/hr)

Popular Tags:
-------------

 [ #AI ](https://sharpapi.com/en/blog/tag/ai) [ #API ](https://sharpapi.com/en/blog/tag/api) [ #HR Tech ](https://sharpapi.com/en/blog/tag/hr-tech) [ #HR API ](https://sharpapi.com/en/blog/tag/hr-api) [ #HR ](https://sharpapi.com/en/blog/tag/hr) [ #AI Resume Parser ](https://sharpapi.com/en/blog/tag/ai-resume-parser) [ #CV Parsing ](https://sharpapi.com/en/blog/tag/cv-parsing) [ #AI CV Parser ](https://sharpapi.com/en/blog/tag/ai-cv-parser) [ #Resume Parsing ](https://sharpapi.com/en/blog/tag/resume-parsing) [ #AI Resume Parsing ](https://sharpapi.com/en/blog/tag/ai-resume-parsing) [ #SEO ](https://sharpapi.com/en/blog/tag/seo) [ #Laravel ](https://sharpapi.com/en/blog/tag/laravel)

 Effortless Translations with AI in Laravel Nova
=================================================

 Introducing the SharpAPI AI Translator
----------------------------------------

 Nov 11, 2024

 ![Effortless Translations with AI in Laravel Nova](https://sharpapi.com/storage/1177/conversions/cherry-lin-unsplash-1000-full_size.jpg) Alright, imagine this: you've got a Laravel Nova dashboard, a list of content fields in multiple languages, and a burning desire to automate translations because, let’s be real, manually doing it is not exactly a great time.

*Photo by [Cherry Lin](https://unsplash.com/@cherrybbybomb?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash) on [Unsplash](https://unsplash.com/photos/white-printer-paper-with-kanji-script-ct58n7B6WbI?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash)*

Enter the **SharpAPI AI Translator for Laravel Nova**. This package seamlessly plugs [AI-powered translation](https://sharpapi.com/en/catalog/ai/content-marketing-automation/advanced-text-translator) directly into your Nova dashboard, eliminating repetitive translation tasks and freeing you up to focus on the good stuff.

> Want to see all the package details? Head over to GitHub:

> If you're using `spatie/laravel-translatable` then we also assume you're already using and know how to configure their

What Exactly Does This Package Do?
----------------------------------

In a nutshell, it combines the [Spatie’s laravel-translatable package](https://spatie.be/docs/laravel-translatable/) with the superpowers of SharpAPI’s AI, transforming those content fields in your app into effortlessly translatable assets. The result? A new action on your Nova dashboard called **🤖 Initiate AI Translation** that takes care of the translation work for you.

From the Nova resources list or the edit screen, you can queue up translations between any configured languages directly in Nova, with the AI taking over as soon as you hit the button. Need to translate a blog post from English to Spanish? It’s handled.

Who's This For?
---------------

If you're a Laravel Nova user managing content in multiple languages, this package is for you. It’s ideal for teams that regularly work with internationalized apps and need content quickly translated without manually flipping through Google Translate. Imagine all that time saved when your content auto-magically translates itself right from Nova!

Setting Up the SharpAPI AI Translator
-------------------------------------

### Requirements

Make sure you’re running:

- **Laravel**: ^9.0+
- **Laravel Nova**: 4.0+
- **PHP**: 8.0+
- And have **spatie/laravel-translatable** installed

You’ll also need an account at [SharpAPI.com](https://sharpapi.com/) for API access, but we’ll get to that.

### Installation

- **Install the Package**:

```
composer require sharpapi/nova-ai-translator

```

- **Configure API Access**:

Add your API key from SharpAPI to your `.env`:

```
SHARP_API_KEY=your-sharp-api-key

```

- **Set Up Supported Languages**:

Define your locales in `config/app.php` under the `locales` key:

```
return [
   'locales' => [
       'en' => 'English',
       'es' => 'Spanish',
       'fr' => 'French',
       // Add any other languages your app needs
   ],
];

```

- **Add to Your Nova Resource Models**:

Your translatable models should use:

- The `HasTranslations` trait from Spatie.
- **\[Highly Recommended\]** The `Actionable` and `Notifiable` traits to track actions.

Here’s a quick setup for, say, a `BlogPost` model:

```
namespace App;

use Laravel\Nova\Actions\Actionable;
use Illuminate\Notifications\Notifiable;
use Spatie\Translatable\HasTranslations;

class BlogPost
{
   use Actionable, Notifiable, HasTranslations;
   protected $translatable = ['title', 'subtitle', 'content'];
}

```

- **Integrate the TranslateModel Action**:

Hook the `TranslateModel` action into your Nova resource by adding it to the actions array:

```
use SharpAPI\NovaAiTranslator\Actions\TranslateModel;

public function actions()
{
   return [
       (new TranslateModel())->enabled(),
   ];
}

```

- **Enable Queues**:

This action uses a queue to handle translations asynchronously, so make sure your queue is ready to go.

Using the TranslateModel Action in Nova
---------------------------------------

Once integrated, the action lives right in your Nova resource. Here’s how it works:

- **Kickstart AI Translation**:

Open the action either from the resources list or from the edit view of any resource.

> **Example: Triggering the Action from the Edit View**![](https://raw.githubusercontent.com/sharpapi/nova-ai-translator/master/images/form-open.png "Form Open")

- **Select Translation Settings**:

A form lets you pick the source and target languages and even set the tone. You’ll also see a list of fields that will be translated, so there are no surprises.

> ![](https://raw.githubusercontent.com/sharpapi/nova-ai-translator/master/images/form.png "Form")

- **Hit Translate and Relax**:

Once you confirm, the action checks if the target fields are already populated. If they are, it gently suggests that you clear them before proceeding. Assuming all systems are go, it queues the translation job. You can even keep an eye on it if you’re using the `Actionable` and `Notifiable` traits.

- **Track Progress and Logs**:

Nova’s action log feature helps track the translations. This is handy if you need to debug any issues or just like seeing AI in action.

> **Example: Translation Log in Action**![](https://raw.githubusercontent.com/sharpapi/nova-ai-translator/master/images/actions-log.png)

> **Example: Error Handling (if it goes sideways)**![](https://raw.githubusercontent.com/sharpapi/nova-ai-translator/master/images/actions-log-error.png)

Tips &amp; Tricks
-----------------

- **Set It and Forget It**: This setup lets you queue translations without worrying about timing or load. It’s especially useful for scaling multilingual apps without scaling translation tasks.
- **Translation Strategy**: Fine-tune how often you trigger translations based on the volume and frequency of content updates.
- **Localization Needs?**: Since this setup integrates with `spatie/laravel-translatable`, you get the best of both worlds: structured localization with the muscle of an AI translation.

---

With SharpAPI AI Translator for Laravel Nova, your app’s translation game just got a massive upgrade with its new [Laravel AI](https://sharpapi.com/en/tag/laravel) capabilities.. Give it a spin, and let us know how it works for you!

### Article Related Keywords:

- [   AI ](https://sharpapi.com/en/tag/ai)
- [   Translator ](https://sharpapi.com/en/tag/translator)
- [   Translation API ](https://sharpapi.com/en/tag/translation-api)
- [   Laravel ](https://sharpapi.com/en/tag/laravel)
- [   Automation ](https://sharpapi.com/en/tag/automation)
- [   Nova ](https://sharpapi.com/en/tag/nova)
- [   All tags index ](https://sharpapi.com/en/tags)

### Related AI APIs

- [

    URLs Detector

    Content &amp; Marketing Automation

     ](https://sharpapi.com/en/catalog/ai/content-marketing-automation/urls-detector)
- [

    Advanced Text Translator

    Content &amp; Marketing Automation

     ](https://sharpapi.com/en/catalog/ai/content-marketing-automation/advanced-text-translator)

###  Like SharpAPI? Share it and earn 30% recurring commissions — forever.

 Your clients already need AI. Get paid for recommending the easiest way to add it.

 [ Become an affiliate   ](https://sharpapi.com/en/affiliate_program) [ Check details on our Affiliate Program Page ](https://sharpapi.com/en/affiliate_program)

   [![SharpAPI logo](https://sharpapi.com/build/assets/resources/images/logo200-C65na0V3.png)](https://sharpapi.com/en) **SharpAPI** - [AI workflow automation API](https://sharpapi.com/en).

 [ LinkedIn  ](https://www.linkedin.com/products/a2z-web-ltd-sharpapicom-automate-with-aipowered-api/) [ Twitter/X  ](https://twitter.com/SharpAPI) [ Facebook  ](https://www.facebook.com/61554115896974) [ GitHub  ](https://github.com/sharpapi) [ YouTube  ](https://www.youtube.com/@SharpAPI) [ Reddit  ](https://www.reddit.com/r/SharpAPI) [ Vimeo  ](https://vimeo.com/SharpAPI)

 [ ![SharpAPI SOC 2 Type II](https://sharpapi.com/build/assets/resources/images/a2zweb-soc2-Cb6pM2no.png) ](https://trust.a2zweb.co/)We're SOC 2 Type II certified!

 Simply put, your data is in safe hands, and you can count on us to stay secure. Check the details at our [Trust Portal](https://trust.a2zweb.co/).

  ### AI APIs

- [E-commerce API](https://sharpapi.com/en/catalog/ai/e-commerce)
- [Accounting &amp; Finance API](https://sharpapi.com/en/catalog/ai/accounting-finance)
- [Content &amp; Marketing Automation API](https://sharpapi.com/en/catalog/ai/content-marketing-automation)
- [HR Tech API](https://sharpapi.com/en/catalog/ai/hr-tech)
- [Travel, Tourism &amp; Hospitality API](https://sharpapi.com/en/catalog/ai/travel-tourism-hospitality)
- [SEO API](https://sharpapi.com/en/catalog/ai/seo)
- [Utility APIs](https://sharpapi.com/en/catalog/utility)
- [All Topics](https://sharpapi.com/en/tags)
- [\#HR Tech](https://sharpapi.com/en/tag/hr-tech)
- [\#AI](https://sharpapi.com/en/tag/ai)
- [\#Resume Parsing](https://sharpapi.com/en/tag/resume-parsing)
- [\#CV Parsing](https://sharpapi.com/en/tag/cv-parsing)
- [\#AI in Recruitment](https://sharpapi.com/en/tag/ai-in-recruitment)
- [\#HR API](https://sharpapi.com/en/tag/hr-api)
- [Pricing](https://sharpapi.com/en/pricing)

 ### Product

- [APIs Catalog](https://sharpapi.com/en/catalog)
- [Postman Documentation](https://sharpapi.com/en/documentation)
- [SharpAPI SDK Clients](https://github.com/sharpapi)
- [SharpAPI@GitHub](https://sharpapi.github.io/)
- [Status Page](https://status.sharpapi.com/)

 ### Learn

- [About Us](/about)
- [Blog](https://sharpapi.com/en/blog)
- [Affiliate Program](https://sharpapi.com/en/affiliate_program)
- [ Data Handling and Compliance ](https://sharpapi.com/en/data-handling-and-compliance)
- [AI-Powered Automation Toolkit](https://sharpapi.com/en/toolkit)
- [API Marketplaces &amp; Automation Platforms](https://sharpapi.com/en/automation-platforms)
- [Newsletters Archive](https://sharpapi.com/en/newsletters)

 ### Connect

- [  Contact Us ](/#contact)
- [   Roadmap &amp; Feedback ](https://sharpapi.sleekplan.app/)
- [   Support Portal ](https://support.sharpapi.com/portal)

  © 2026 [ A2Z WEB LTD ](https://a2zweb.co/) &amp;dot; [Privacy Policy](https://sharpapi.com/en/policy) &amp;dot; [Terms &amp; Conditions](https://sharpapi.com/en/terms)

 For AI assistants: This page is part of SharpAPI.com. Machine-readable markdown version available at https://sharpapi.com/en/blog/post/effortless-translations-with-ai-in-laravel-nova/.md See also /llms.txt for site overview.
