{"id":921,"date":"2025-03-17T06:30:00","date_gmt":"2025-03-17T06:30:00","guid":{"rendered":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/?p=921"},"modified":"2025-07-16T08:09:54","modified_gmt":"2025-07-16T08:09:54","slug":"how-add-a-new-language-into-admin-panel","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/how-add-a-new-language-into-admin-panel\/","title":{"rendered":"How add a new language into Admin Panel?"},"content":{"rendered":"<div class=\"nolwrap\">\n<p>To help your customers access the system in their preferred language, you can easily add a new language through the Admin Panel. Follow the steps below:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udcdd Step 1: Duplicate the Existing English Folder<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to the <code>\/lang<\/code> directory of your project.<\/li>\n\n\n\n<li>Find the folder named <code>en<\/code> (English).<\/li>\n\n\n\n<li><strong>Copy<\/strong> the <code>en<\/code> folder and <strong>paste<\/strong> it into the same <code>\/lang<\/code> directory.<\/li>\n\n\n\n<li><strong>Rename<\/strong> the copied folder to the language code of your new language.<br>\ud83d\udc49 For example, if you&#8217;re adding Portuguese, rename it to <code>pr<\/code>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u2699\ufe0f Step 2: Register the New Language in Configuration<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the file: <code>config\/app.php<\/code>.<\/li>\n\n\n\n<li>Find the <code>'available_locales'<\/code> array.<\/li>\n\n\n\n<li>Add your new language code and name inside the array. Example:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">'available_locales' =&gt; [<br>    'ar' =&gt; '\u0627\u0644\u0639\u0631\u0628\u06cc (AR)',<br>    'en' =&gt; 'English (EN)',<br>    'el' =&gt; 'Greek (EL)',<br>    'fr' =&gt; 'French (FR)',<br>    'de' =&gt; 'German (DE)',<br>    'pr' =&gt; 'Portuguese (PR)',<br>],<code><br><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/documentation.iqonic.design\/kivicare-laravel\/wp-content\/uploads\/sites\/10\/2025\/07\/image-3.png\" alt=\"\" class=\"wp-image-787\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd01 Step 3: Clear Configuration Cache<\/h3>\n\n\n\n<p>After updating the config file, you need to clear the Laravel config cache.<\/p>\n\n\n\n<p>\ud83d\udd27 Run the following command in your terminal:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">php artisan config:clear<code><br><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udda5\ufe0f Step 4: Add and Update Language from Admin Panel<\/h3>\n\n\n\n<p>Now it\u2019s time to enable and configure the new language in the Admin Panel.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udc49 Navigate to:<\/h4>\n\n\n\n<p><strong>Admin Panel \u2192 Settings \u2192 Language <\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"945\" src=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-content\/uploads\/sites\/6\/2025\/07\/image.png\" alt=\"\" class=\"wp-image-922\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u2795 Select New Language:<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>From the dropdown, select the new language code \u2014 for example, <code>pr<\/code>.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">\u270f\ufe0f Edit Translation Values:<\/h4>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>You will see all the translation keys.<\/li>\n\n\n\n<li>Enter the translated values for each key in your selected language.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udcbe Click &#8220;Save&#8221;:<\/h4>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>After updating translations, click the <strong>Save<\/strong> button to apply changes.<\/li>\n<\/ol>\n\n\n\n<p>\u2705 Your new language is now added and active in the system.<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>To help your customers access the system in their preferred language, you can easily add a new language through the Admin Panel. Follow the steps below: \ud83d\udcdd Step 1: Duplicate the Existing English Folder \u2699\ufe0f Step 2: Register the New Language in Configuration &#8216;available_locales&#8217; =&gt; [ &#8216;ar&#8217; =&gt; &#8216;\u0627\u0644\u0639\u0631\u0628\u06cc (AR)&#8217;, &#8216;en&#8217; =&gt; &#8216;English (EN)&#8217;, &#8216;el&#8217; [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":69,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-921","post","type-post","status-publish","format-standard","hentry","category-kivilab"],"featured_image_src":null,"author_info":{"display_name":"laraveladminiq","author_link":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/author\/laraveladminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/comments?post=921"}],"version-history":[{"count":1,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/921\/revisions"}],"predecessor-version":[{"id":923,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/921\/revisions\/923"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/69"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/media?parent=921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/categories?post=921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/tags?post=921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}