Comments (5)
I think so, appears to look that way anyways.
https://voyager-docs.devdojo.com/core-concepts/multilanguage
You can also add bread to the translations table pretty easily by using "TCG\Voyager\Models\Translation" as a model, or build your own that extends it. If you search the repo here for getTranslatedAttribute
The browse blade takes a datatype, which has datarows.
Datatype and DataRows have the translator trait applied.
Type uses "display_name_singular, display_name_plural" and Row uses "display_name"
So you should just be able to make translation entries for your table.
The tricky part is that Voyager hides the DataTypes and Rows Tables.
You can use tinker or debug another way.
For example
Run php artisan tinker and then type
TCG\Voyager\Models\DataType::where('name','categories')->first()->rows->pluck('display_name','id')
This will give you a list of data rows with their display_name and corresponding id. You can use 'name' if you don't want the case confusion.
Now go into the Bread for translations that you just made and add a new entry.
Set the fields as follows:
Table Name : data_rows
Column Name: display_name
Foreign Key: [ID VALUE FROM QUEURY FOR COLUMN]
Locale: [WANTED LOCALE]
Value: [TRANSLATED VALUE]
Now when your user changes their locale, that data_row will get translated.
from voyager.
Notice the first column is now translated.
from voyager.
@Emerica Thank you so much. 🙇🏻♂️🙇🏻♂️🙇🏻♂️
from voyager.
I think you have to commit to your own fork vs master and then submit the pull in github from your fork.
Keep in mind, the maintainers don't seem to spend as much time going over those it seems, so it might be some time for it to be picked up. Don't let it discourage you if it sits...
from voyager.
@Emerica how to create PR for new unsupported locale?
I have already translated. When i try to push then it says:
git push --set-upstream origin adding-a-new-unsupported-locale-mongolia-mn
remote: Permission to thedevdojo/voyager.git denied to enkhtulga-gantsagaan.
fatal: unable to access 'https://github.com/thedevdojo/voyager.git/': The requested URL returned error: 403
from voyager.
Related Issues (20)
- Give Restricted Access of Media
- Voyager google analytics not working anymore HOT 1
- TinyMCE height
- TinyMce style select not showing after upgrade HOT 1
- Support For Laravel 10 HOT 4
- Add or Edit Required Fields Mandatory * is not showing HOT 5
- cannot install voyager using composer require HOT 1
- Can not upload image via tinymce on voyager 1.6
- doesn't find migration of laravel voyager project Yet !! HOT 3
- Call to undefined method HOT 1
- 500 Server error when trying to access admin panel HOT 3
- Voyager doesn't load admin panel
- HasMany relation doesn't work
- Multiple BREAD for single table/model HOT 1
- Update docs for voyager 1.7
- Whoopsie! The "" file does not exist or is not readable. HOT 3
- Unsupported image type image/heic. GD driver is only able to decode JPG, PNG, GIF, BMP or WebP files HOT 3
- media library's one of the folders is not loading HOT 3
- custom action not found on cpanel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from voyager.