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

0.5.2 Breaks non-english documentation #601

Open
Haniyya opened this issue Jan 18, 2018 · 4 comments
Open

0.5.2 Breaks non-english documentation #601

Haniyya opened this issue Jan 18, 2018 · 4 comments

Comments

@Haniyya
Copy link
Contributor

Haniyya commented Jan 18, 2018

The fix introduced in #543 breaks documentation for non-english users.
We defined our documentation using 0.5.1, but when upgrading all links were augmented with the default locale.
Those links always lead to 404s since (i guess) the api was written without any locale. Removing the locale from links fixes them (changing it to the Apipie.configuration.default_locale as specified in our initializer leads to 404 as well).

@Haniyya
Copy link
Contributor Author

Haniyya commented Jan 18, 2018

The error reads something like 'Oops! Resource users.en not found.' Same with users.de.

@Haniyya
Copy link
Contributor Author

Haniyya commented Jan 18, 2018

Adendum: I did not experience the error when using a local copy of the gem since my computers locale is de and the same is true for our application.

@Haniyya
Copy link
Contributor Author

Haniyya commented Jan 18, 2018

Workaround for any who experience the same: config.translate = false in your initializer "fixes" it

@Mayurifag
Copy link

@Haniyya thank you so much!

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

No branches or pull requests

2 participants