Voyager: Voyager Translations UI

Created on 20 Jun 2017  路  64Comments  路  Source: the-control-group/voyager

Voyager Translations are available on master branch.

For submitting your translations, please use the english translation as a start.

How to use

  • choose the default locale at config/app.php.
  • publish langs, or just copy/paste from vendor\tcg\voyager\publishable\lang\ into resources\lang\vendor\voyager\ as described in the Laravel docs.

Note

  • Language switch is missing.
  • If you use custom views, they require a update since voyager lang was changed.

Currently Translated

  • English
  • Arabic | @MujtabaFR
  • Chinese | @PCDotFan
  • French | @COTIGA
  • German | @marco-solare
  • Portuguese BR | @vpakg
  • Portuguese PT | @akazorg
  • Russian | @alexelev
  • Spanish | @gabrieljaime
  • Italy | @vitormicillo
  • Dutch | @andrewo0

Ping Voyagers...
@marktopper @tnylea @emptynick @gnovaro @abdgad @fletch3555 @mbdwey @AdrianKuriata @Steve-sy @v01061374 @CrazyFreeMan @Omazon @AngeloMerlo @kristiandrucker @mr0bles @jehanf @lucacalcaterra @aak74.

:world_map:

documentation feature guide help wanted i18n in progress

Most helpful comment

Hi, I'm on the Persian (Farsi - 賮丕乇爻蹖) translation.

All 64 comments

I'm on it...

Sure, i will do polish translation.

Thanks for great work!

Missed word in browse.blade.php :
@section('page_title','All '.$dataType->display_name_plural)

Next problem:
Translation showing_entries should be '[0]No entries|[1,*]Showing :from to :to of :all entries'
and browse.blade.php line 123:
{{ trans_choice('voyager.generic.showing_entries', $dataTypeContent->total(), ['from' => $dataTypeContent->firstItem(), 'to' => $dataTypeContent->lastItem(), 'all' => $dataTypeContent->total()]) }}

working in spanish translation

@IProSoft thanks, will update that!

DataTables has a language files from their page.

Hi @AdrianKuriata, I've merged their translations.

Hi @akazorg. Did you copy translation for buttons? I mean text for copy button after copied to clipboard?

I have no idea, can you please check that on Voyager EN lang file?

I mean about this Check Copy clipbooard language. This is not exists in voyager language file. When you get in on link, which i add and you click on copy you will see modal with information about success copied to clipboard etc.

@akazorg Sorry, my bad i forgot we don't let users export data! Forget about what I talking!

I'm on the French translation

Thanks for the new feature @akazorg ! I am working on a project and in two weeks I finish and I will work on the translation into Portuguese (Brazil).

Hi @AngeloMerlo Portuguese (BR) translations are ready to use.
@vpakg already took care of that.
Happy codding!

Hi, I'm on the Persian (Farsi - 賮丕乇爻蹖) translation.

might be good idea to publish tutorial on translate integration and give option in settings or smthing like that

@e178551 what do you mean?

im new to voyager and i couldn't change interface lang. can you make step by step tut on it. also i could not finf any resources on yutube

Hi @e178551, for enabling a different language on the Voyager UI, you will have to define the locale at config/app.php (it uses the default Laravel translations system).

If you are looking for a "language selector", that is not available at the moment, the admin/developer will have to define which language to use.

I hope this is clear for you. Happy coding.
[edited]

akazorg,
You mean: config/app.php
tks

Indeed @COTIGA.
Thanks I've edited my comment.

Hello, I am new not Voyager, not understood how to translate to pt_br.
They could pass me one step at a time. Thank you.

I've just submitted the Arabic translation files as a pull request.
But I noticed that Dimmers in dashboard has some issues with Arabic language as shown in this picture

download

Also I hope that the RTL feature can be completed soon :)

@vitorbrussi just enter the default locale at config/app.php.

@MujtabaFR thanks for the PR, I've commented it. I'm not sure what is happening with Dimmers, we should check that. If you find a solution please let us know.

Hello, I have changed the language in the config / app.php locate = es, And copy the translation files to the recourse / lang folder But does not change the language

@Enyelber What version of Voyager are you using?

this v0.11.14

Italy language its me @marktopper @tnylea @akazorg

Added you to the list @vitormicillo

I'm going to do Dutch Translation @marktopper

Great @andrewo0! 馃挭

I will try to do romanian..)

Ukrainian from me

@mhemrg Did you finish the Farsi translation?
I could help you.

@khalilst Sounds great! Just make a PR: https://github.com/mhemrg/voyager

Hi everyone, just some questions.

1 - I am seeing that the language files doesnt affect the menu title, it is? is there a way we could do the menu title use the lang files?

2 - I think that its a good idea if we include the default auth.php, pagination.php, passwords.php, validation.php translated to have all languages translated by default. We can base it on the caouecs/laravel-lang package. What do you think about this idea?

3- Do you think it is necesary to publish the lang files by automatic?, in my case i prefer that the lang files for voyager keep on the package to avoid repetition of files and have all translations updated.

I could help doing this without any problem.

Hello there, I will try to make Czech translation.

Close this since we merged this feature. Please open new issue if you have something to discuss about.

Let's leave this open @handiwijoyo. It's not an issue, it more of a docs section for helping users.

We should move this to documentation, fell free to update it if you want.

Hi,
Is there some graphical Language switch somewhere ?
(to allow the user to select his displayed language buttons/bread/etc...)
Is it supposed to be on Profile or Login page ?
If not, does somebody have used some additionnal laravel package to match this need ?
Thanks by advance.

I configurate the locale in config/app.php and copy/paste from vendor\tcg\voyager\publishable\lang\ into resources\lang\. But not works. Using Voyager version 1.1

@fliot Yes, in v1.1 upwards theres a language-switch in your profile.
@igorjacauna If you want to override language-files thats the wrong location.

@emptynick , I just follow the instructions on begin of this issue.
How can I override the language?

have the same problem, follow the instructions but language does not work
SOLVE: need to set user locale from admin page. Set locale in config not enough

same problem. :(

Please update at "How to use"
Instead of informing:

publish langs, or just copy/paste from vendor\tcg\voyager\publishable\lang\ into resources\lang\

Update to:

publish langs, or just copy/paste from vendor\tcg\voyager\publishable\lang\ into resources\lang\vendor\voyager\ as described in the Laravel docs

I took a long time to figure out it, I hope it helps others too.

Voyager is fully translated to Turkish language by me @yakuter

Good morning all guide. I use voyager version 1.1 and i want to use multiple languages but on the menu cannot show the languages when i change languages. can every one help me?

@binsoktheara you can translate it yourself on the menu builder.

@kelvinkhai I translate already but the problem is it can not show on the master page when i change languages.

hello! i want to collab with Spanish translate, how i can start?

Hey guys, I want to contribute and add Lithuanian translation, how should I start?

Add please to ru lang generic.php 'remember_me' => 袟邪锌芯屑薪懈褌褜 屑械薪褟',

Do you need Romanian translation?

Can anyone do Serbian?

@akazorg I copied language files beneath the resources\lang\vendor\voyager directory. I changed locale language on config/app.php. Ran cache:clear and view:clear commands but still it shows on english.

Laravel version: 5.6

Change the language in your profile

@emptynick. I waste four hours till now... Dude you are a life saver

I can translate into Malayalam and Tamil

pl lang - generic.php:
'remember_me' => 'Zapami臋taj mnie'

I pasted the translations folder of the spanish lang to resources/lang/vendor/voyager/es, but nothing changes, what else am i missing? i already changed config/app.php to es locale and in voyager.php i change to es locale too. what else do i need to change?

Apparently, you also need to switch the lang in your profile.
Here's how:
Click on your avatar on the top right corner of the screen, Profile -> Edit -> Switch you language to what you want.

Good luck.
Voyager is great, but it would be good to be able to set the default lang in the config/voyager.php file.

If no language is set in your profile it will take the default app locale from your configuration.
No need to add another config in voyager.php

Hi! I want to help with Catalan translations!

Was this page helpful?
0 / 5 - 0 ratings