Skip to content

Commit

Permalink
www: enable fallback for Ukrainian locale
Browse files Browse the repository at this point in the history
Refs: nodejs/nodejs.org#844
PR-URL: #458
Reviewed-By: Johan Bergström <[email protected]>
  • Loading branch information
phillipj authored and jbergstroem committed Aug 8, 2016
1 parent 281ae6c commit 6cacb25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup/www/resources/config/nodejs.org
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ server {

# instead of serving a 404 page when a page hasn't been translated
location @english_fallback {
if ($uri ~* ^/(es|it|ko|zh-cn)/) {
if ($uri ~* ^/(es|it|ko|zh-cn|uk)/) {
set $lang $1;
}
rewrite ^/(es|it|ko|zh-cn)/(.*)$ /en/$2;
rewrite ^/(es|it|ko|zh-cn|uk)/(.*)$ /en/$2;
}

# serve a localized 404 page if we've got $lang set from @english_fallback
Expand Down Expand Up @@ -225,10 +225,10 @@ server {

# instead of serving a 404 page when a page hasn't been translated
location @english_fallback {
if ($uri ~* ^/(es|it|ko|zh-cn)/) {
if ($uri ~* ^/(es|it|ko|zh-cn|uk)/) {
set $lang $1;
}
rewrite ^/(es|it|ko|zh-cn)/(.*)$ /en/$2;
rewrite ^/(es|it|ko|zh-cn|uk)/(.*)$ /en/$2;
}

# serve a localized 404 page if we've got $lang set from @english_fallback
Expand Down

0 comments on commit 6cacb25

Please sign in to comment.