Comments (9)
I am probably going to include this in 0.3.0 in the form argument on each field.
query {
Blog {
title
titleNL: title(locale:"nl")
body(locale:"is")
}
}
Would this work for you? To reduce bloat this could be configurable by schema or field.
from prime.
Well, I doubt we will replace it completely, but we may implement them somehow. Contentful does this very well, so I may end up model it after them
from prime.
Ok. But how is that different from what we already have?
query {
Blog(locale:"nl") {
title
body
}
}
I am starting to think that this ticket is more about UI rather than API, am I correct?
from prime.
GraphCMS is also doing this on field level:
query page($id: ID, $locale: Locale) {
page(where: { id: $id }) {
updatedAt
createdAt
id
title
slug(locale: $locale)
}
}
@birkir do you still plan to implement this in 0.3?
from prime.
from prime.
I don't have a strong opinion on how Localization is implemented, but I'm glad to see it will be released on 0.3.0 or soon enough
Keep up the great work, thanks for open sourcing! 👍 💯
from prime.
The way Cockpit CMS does it is with a URL query parameter. If the parameter is not provided the localized fields get a locale suffix. So far this is the setup that has worked best for me.
from prime.
That would indeed work, of course. I brought up the other approach just in case it might give you more ideas.
My concern is more towards multilingual sites using gatsbyjs.
from prime.
My only question with translated documents - how do you connect two documents?
For example, we have city tour website. We have a list of cities and a list of places for each city). So titles/descriptions suppose to be translated, but geo-location, open/closing times, price range are all the same across the languages. What I do now is that I have same entities in DB, but translate fields.
from prime.
Related Issues (20)
- Question: Master Detail document HOT 2
- Error: Cannot find module '@primecms/field' HOT 3
- Field select returns single value when graphql expects iterable value HOT 2
- Apollo Federation
- Question: backend HOT 2
- user.meta is not a function HOT 1
- npx @primecms/cli init
- Unable to start primecms: column cnst.consrc does not exist HOT 7
- Prime
- Separate Tables per Content Type HOT 3
- Unable to start Prime CMS HOT 1
- Consider to generalize building admin ui forms with jsonschema
- Heroku deployment fails HOT 2
- starting prime not working? HOT 1
- Compile error
- Heroku Deployment Error
- what is the purpose of serving the UI via the core? HOT 1
- Status of this project? HOT 5
- Typescript error in compiling fields
- Cannot Open/Start/View the app on Heroku
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 prime.