Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #3 & #5
This PR is built on top of #2 so that should be reviewed and merged before reviewing this PR. Only the last two commits are new.
This update adds i18n support using i18next and react-i18next packages. Only an English lang file is included but more can be added easily in the future.
This PR also adds some basic logging infrastructure using the debug package. Here are some notes from the README on how to customize the logs that are outputted to the console.
Logging
Client-side logs are disabled by default in production builds and enabled by default in a development environment. In production, logging can be turned on by adding a couple keys to your browser's
localStorage
. Simply run these two JS statements in you browser's DevTools console:The value for
debug
is a namespace filter which determines which portions of the app to display logs for. The namespaces currently used by the app are as follows:main
: logs general application messagesaction
: logs all actions that modify the internal application stategrpc
: logs all GRPC API requests and responsesExample filters:
main,action
will only log main and action messages.*,-actions
will log everything except action messages.The value for
debug-level
determines the verbosity of the logs. The value can be one ofdebug
,info
,warn
, orerror
.