Comments (3)
It should be possible, yes—I think you'll want to put your translated strings in resources/lang/vendor/nova/en.json
. Then what you have above should work. Let me know!
from nova-settings-tool.
Thank you @bakerkretzmar . That works! I prefer to have a dedicated translation file though. It's cleaner and easier to find and maintain. Is this possible?
from nova-settings-tool.
Glad to hear it! Yes, you can put them in a separate file, you'll need to load that file explicitly.
Assuming your translations are in resources/lang/en.json
, in the boot()
method of your AppServiceProvider
, add something like this:
public function boot()
{
$this->loadJsonTranslationsFrom(resource_path('lang'));
}
You can see how Nova does it here.
from nova-settings-tool.
Related Issues (20)
- Support for standard Nova fields HOT 5
- How can "toggle" be set to true as default? HOT 6
- Single file input HOT 2
- Error After Installing HOT 4
- settings input of type number are not working HOT 3
- Error after installation (Call to a member function authorize() on string) HOT 2
- Hide from navigation HOT 7
- Can't add logs on change settings HOT 1
- Fields are not added to the admin panel. HOT 7
- Not compatible with Nova 4.0 HOT 5
- Do this module support settings per user? HOT 2
- Resource page does not show after visit setting page HOT 2
- TypeError: Cannot read properties of null (reading 'split') HOT 6
- Show/hide fields based on permissions? HOT 1
- Error authorizing tool using gate HOT 5
- Insert middleware Authenticate::class HOT 8
- Please support boolean-group-field HOT 1
- Styling issue in Nova ^v4.26.5 HOT 1
- Save button styling issue in Nova v4.29 HOT 3
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 nova-settings-tool.