ikhudo / gatsby-i18n-plugin

MIT License
40 stars 13 forks source link

Possible to exclude default lang from URL? #4

Open i8ramin opened 5 years ago

i8ramin commented 5 years ago

Is it possible to have the default language (ie, en) not prepend to the URL? For example, right now when visiting site.com, the plugin redirects you to site.com/en. Would prefer the URL to remain as just site.com (when lang = en) and only redirect and preprend lang when it isn't en (ie, site.com/de)

Is this currently possible?

i8ramin commented 5 years ago

Ping

i8ramin commented 5 years ago

FYI, created a PR that could be a possible solution to this -- https://github.com/ikhudo/gatsby-i18n-plugin/pull/5