Comments (5)
I plan to use translation later with buffalo, and this type of urls is compulsory for SEO.
Other url type that google like aswell are fr.gobuffalo.io, es.gobuffalo.io ...
Related question: Could this mechanisme of subfolder language be automated in a way with the buffalo generator ? As it is a standard url scheme for websites.
from docs.
@hubyhuby I plan to change the i18n middleware a bit, to allow customized extractors for the language:
- Cookie
- Session
- URL param, maybe (?lang=en)
- URL prefix (/en/, /fr/)
- subdomains (en.domain.io, fr.domain.io)
- Custom extractor using an interface?
I'd like to have a way to set priority for extractors too (first session, then cookie, and so on). Keeping the same default as now should be enough to keep back-compatibility.
from docs.
Hi @stanislas-m ,
I have not experienced for now the i18n feature in Buffalo.
On a SEO perspective what I have read is that the best practices in order are :
-Have several top domains : gobuffalo.fr gobuffalo.de ...
-Have subdomain like this fr.gobuffalo.io de.gobuffalo.fr ....
-Have a subfolder gobuffalo.io/fr gobuffalo.io/de
As I understand the "?lang=en" is not something search engines like. As of today...
My personal experience with the last website launch 4 motnhs ago, is that subdomains like "en.gobuffalo.io" works well in google. If I am in spain and try to reach my french website it will show on google "en.gobuffalo.io" (and not "gobuffalo.io" ) in first page. (I don t have a spanish website so it defaults to EN)
Conerning your technical question, as I didn t used it yet, I don t have a vlue ;)
from docs.
@hubyhuby I've reworked the i18n middleware a bit here: gobuffalo/buffalo#957 (and here is the way to use the new URL prefix language finder: https://github.com/gobuffalo/buffalo/blob/ef75e1dfa8c2bec86ad07aea7ca2f5b2feb5acca/middleware/i18n/i18n_test.go#L33)
It should allow to manage the subfolder way, and make the language finding easier to extend. I'm not sure Buffalo allows to run multiple domains / subdomains from now, but if not you can ask for this feature in the Buffalo repo. :)
from docs.
Since this specific point is resolved, I close this issue. @hubyhuby if you want a support for subdomains, please add an issue in the buffalo repo. :)
from docs.
Related Issues (20)
- `buffalo new coke` fails HOT 1
- Incorrect URL for crdb in configurations
- Improve examples with PUT, POST and more
- I don't know how to generate a model fields with default value in doc.
- improvement by adding date on release notes page
- Update tables when table name is dynamic
- No z-index on documentation HOT 1
- Local models not found in initial buffalo-auth generation HOT 1
- brew install gobuffalo/tap/pop
- Cant install SODA CLI on Linux HOT 1
- Some elements activate mailer on the docs sidebar HOT 3
- Plush variables not render correctly HOT 1
- could it be possible we make this path transition seamlessly? HOT 4
- Docs: Events page is 404-ing HOT 6
- Incorrect link for install Buffalo CLI HOT 3
- Deployment documentation misses important new "buffalo build" options HOT 1
- Buffalo Plugins documentation is outdated HOT 1
- buffalo dev fails to run a newly generated project HOT 1
- feature: no where on doc mention how to insert.
- bug: Fix models uuid documentation 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 docs.