-
Notifications
You must be signed in to change notification settings - Fork 1.1k
document best practice for providing translated snapshots for search engines #80
Comments
Short, more later: so you know |
I think we should ask the awesome @cburgdorf what he thinks about that. So, |
Ok, as my wife turned 30 just today, I'm faced with some time constraints. So here is the quick and dirty guide on what to do:
See: https://github.com/cburgdorf/couch-website/blob/release/snapshot____de-de_about.html 3.Then configure your webserver to spit out those templates according to the hashbang spec. E.g. www.mypage.com/#/foo will be requested from your server as www.mypage.com/?_escaped_fragment_=/foo. So just configure your webserver to hand out the correct snapshot when it sees such a request.
Hope that helps. |
Thanks for you input Chris! |
Maybe I'm wrong, but it looks like there's nothing angular-translate can really do to help out there, right? Isn't it more an application-level thing, where the app has to figure out which language should be used and then tell angular-translate about it? So my actual question, with the given construct and tips @cburgdorf gave us here, is it possible to generate these snapshots in different languages using angular-translate or not? And if not, is there anything you need from angular-translate to get this working? If so, lemme know so I can implement what you need and make it a feature in |
I must agree that I don't see how |
This is exactly what I thought too! So I will close this for now. We can reopen this one, if needed. @Skivvies nevertheless, keep us up-to-date with your experiences! |
Just starting to look into how to take snapshots of my site in all supported languages so I can make them available to search engines.
It looks like https://github.com/cburgdorf/grunt-html-snapshot could be the thing to use here. I think it would just require setting up angular-translate to read the locale from the location fragment, and then it's just a matter of adding
<meta name="fragment" content="!">
as documented athttp://docs.angularjs.org/guide/dev_guide.services.$location#crawlingyourapp.
Please let me know if I'm on the right track, and if desired I'll be happy to document my findings here as I continue to work on this.
Thanks for the great work on angular-translate!
The text was updated successfully, but these errors were encountered: