bringyourownideas / laravel-sitemap

Simple crawler and sitemap generator for Laravel. No headless browser - just a crawler.
https://bringyourownideas.com/blog/simple-laravel-sitemap-generator
MIT License
9 stars 4 forks source link

Multi Languages #11

Open MahmoudSaidHaggag opened 1 year ago

MahmoudSaidHaggag commented 1 year ago

How generate with multi languages in site

In my case My site Articles can view in English or Arabic

How generate sitemap for this.

spekulatius commented 1 year ago

Hey @MahmoudSaidHaggag

multi-language sitemaps aren't supported at this point, sorry. It's an idea to consider but not worked on as of now.

Cheers, Peter

MahmoudSaidHaggag commented 1 year ago

Thank you @spekulatius

And waiting to work on it as much as possible

MahmoudSaidHaggag commented 1 year ago

I was looking for a solution to this problem, and I actually found a solution that is considered the best now, but to implement it and test it, I would like you to tell me how to pass Query Params with all Crawling links?

Sample for this https://example.com?locale=en https://example.com/blog/details/1?locale=en

MahmoudSaidHaggag commented 1 year ago

Hey @spekulatius

Can help me please

spekulatius commented 1 year ago

I was looking for a solution to this problem, and I actually found a solution that is considered the best now, but to implement it and test it, I would like you to tell me how to pass Query Params with all Crawling links?

Sample for this https://example.com?locale=en https://example.com/blog/details/1?locale=en

Hello @MahmoudSaidHaggag

adding parameters isn't something this lib would do, you will need to check how to add it in the underlying libaray: https://github.com/mvdbos/php-spider

Cheers, Peter