Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add offset option to getLocaleFromUrl #3

Merged

Conversation

ricardogama
Copy link

@ricardogama ricardogama commented May 17, 2016

This PR adds the offset option to getLocaleFromUrl, which makes:

ctx.getLocaleFromUrl({ offset: 1 });

Match en for paths like /foo/en/bar.

@ricardogama
Copy link
Author

@fundon WDYT?

@ricardogama ricardogama force-pushed the feature/get-locale-from-url-offset branch from 0e8dea3 to 733ed43 Compare May 17, 2016 19:33
@fundon
Copy link
Member

fundon commented May 18, 2016

@ricardogama Great!

Could you make the green for the status of travis ci?

@ricardogama ricardogama force-pushed the feature/get-locale-from-url-offset branch from 733ed43 to 773f0c2 Compare May 18, 2016 08:46
@ricardogama
Copy link
Author

@fundon Done. Added bluebird as dev dependency for the 0.11 build to pass.

@fundon fundon merged commit 552c850 into koa-modules:master May 19, 2016
@fundon
Copy link
Member

fundon commented May 19, 2016

@ricardogama Nice!

@ricardogama ricardogama deleted the feature/get-locale-from-url-offset branch May 19, 2016 16:24
@ricardogama
Copy link
Author

@fundon Thanks! When can a release be expected? Also, check out #2 regarding the npm version of this package.

@fundon
Copy link
Member

fundon commented May 20, 2016

@ricardogama Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants