-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check English translation if language doesn't exist (#361)
Need this because of #316
- Loading branch information
1 parent
5805149
commit 5a77f18
Showing
1 changed file
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5a77f18
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi. I've made a similar change in https://github.com/neilsutcliffe/Docusaurus/blob/5838e66ae6ea37c941bd8a58bd4c12b6fe0878a8/lib/server/translate.js
It has the concept of 'default.json' being a valid translation, but it falls back to english if default isn't there.
5a77f18
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@neilsutcliffe Hi. Yours, on the surface, may be a bit cleaner and tidier :)
I wanted to get something correct-ish so I could get 1.0.4 which fixed some bugs.
Maybe 1.0.5 can be a refactor-focus.