-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Allow custom paths in plugin generator #57766
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
Merged
lizozom
merged 16 commits into
elastic:master
from
lizozom:newplatform/plugin-gen-paths
Feb 19, 2020
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2de8d5a
Allow custom paths
3cc7a48
Add translation file
9d846ba
Fix jest test
7f1c4a9
Added more tests
5e55302
Merge remote-tracking branch 'upstream/master' into newplatform/plugi…
e939358
Merge branch 'master' into newplatform/plugin-gen-paths
elasticmachine f6f7d1e
Merge branch 'master' into newplatform/plugin-gen-paths
elasticmachine 529fcdf
Update docs
79a901c
Merge branch 'newplatform/plugin-gen-paths' of github.com:lizozom/kib…
8c9ba4a
Leave only one translation file
c6a784c
generate default translations file
52eac92
Simplify i18n setup
6bd5d45
Merge branch 'master' of github.com:elastic/kibana into newplatform/p…
c679c66
Code review changes
8ef6f05
Merge branch 'master' of github.com:elastic/kibana into newplatform/p…
1e77b84
Merge branch 'master' into newplatform/plugin-gen-paths
elasticmachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
10 changes: 10 additions & 0 deletions
10
packages/kbn-plugin-generator/sao_template/template/i18nrc.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "prefix": "<%= camelCase(name) %>", | ||
| "paths": { | ||
| "<%= camelCase(name) %>": "." | ||
| }, | ||
| "translations": [ | ||
| "translations/ja-JP.json" | ||
lizozom marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ] | ||
| } | ||
|
|
||
82 changes: 82 additions & 0 deletions
82
packages/kbn-plugin-generator/sao_template/template/translations/ja-JP.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
|
|
||
| { | ||
| "formats": { | ||
| "number": { | ||
| "currency": { | ||
| "style": "currency" | ||
| }, | ||
| "percent": { | ||
| "style": "percent" | ||
| } | ||
| }, | ||
| "date": { | ||
| "short": { | ||
| "month": "numeric", | ||
| "day": "numeric", | ||
| "year": "2-digit" | ||
| }, | ||
| "medium": { | ||
| "month": "short", | ||
| "day": "numeric", | ||
| "year": "numeric" | ||
| }, | ||
| "long": { | ||
| "month": "long", | ||
| "day": "numeric", | ||
| "year": "numeric" | ||
| }, | ||
| "full": { | ||
| "weekday": "long", | ||
| "month": "long", | ||
| "day": "numeric", | ||
| "year": "numeric" | ||
| } | ||
| }, | ||
| "time": { | ||
| "short": { | ||
| "hour": "numeric", | ||
| "minute": "numeric" | ||
| }, | ||
| "medium": { | ||
| "hour": "numeric", | ||
| "minute": "numeric", | ||
| "second": "numeric" | ||
| }, | ||
| "long": { | ||
| "hour": "numeric", | ||
| "minute": "numeric", | ||
| "second": "numeric", | ||
| "timeZoneName": "short" | ||
| }, | ||
| "full": { | ||
| "hour": "numeric", | ||
| "minute": "numeric", | ||
| "second": "numeric", | ||
| "timeZoneName": "short" | ||
| } | ||
| }, | ||
| "relative": { | ||
| "years": { | ||
| "units": "year" | ||
| }, | ||
| "months": { | ||
| "units": "month" | ||
| }, | ||
| "days": { | ||
| "units": "day" | ||
| }, | ||
| "hours": { | ||
| "units": "hour" | ||
| }, | ||
| "minutes": { | ||
| "units": "minute" | ||
| }, | ||
| "seconds": { | ||
| "units": "second" | ||
| } | ||
| } | ||
| }, | ||
| "messages": { | ||
| "<%= camelCase(name) %>.buttonText": "Translate me to Japanese", | ||
| } | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.