-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
docs: translate basic/config.md #875
Conversation
@Brian175 where are you proofreading the translation? |
Codecov Report
@@ Coverage Diff @@
## master #875 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 28 28
Lines 667 667
=====================================
Hits 667 667 Continue to review full report at Codecov.
|
@popomore hello, this translation is from swiftgg and we have proofreaded and finalized to some degree to gurantee the quality |
docs/source/en/basics/config.md
Outdated
}; | ||
``` | ||
The build-in appInfo contains: | ||
<table> |
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.
use markdown syntax
docs/source/en/basics/config.md
Outdated
|- config.unittest.js | ||
|- config.local.js | ||
``` | ||
```config.default.js``` is the default file for configuration, and all environments will load this file. Besides, this is usually used as default configuration file for development environment. |
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.
inline code can change to single `
docs/source/en/basics/config.md
Outdated
@@ -0,0 +1,188 @@ | |||
title: Configuration | |||
--- | |||
This framework provides powerful and extensible configuration function, including automatically merging applications, plug-ins, and framework's configuration. In addition, it allows users to overwrite configuration in sequence and maintain different configs depending on different environments. The result (i.e. merged config) can be accessed from ```app.config ```. |
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.
` 是一个,不是三个,下同
docs/source/en/basics/config.md
Outdated
2. Using platform to manage configurations: you can pass the current environment configuration via environment variables while starting. This is a relatively elegant approach with higher requirement on operation and support from configuration platform. Moreover, The configuration environment has same flaws as first method. | ||
3. Using code to manage configurations: you can add some environment configurations in codes and pass them to current environment arguments while starting. However, it doesn't allow you to configurate globally and you need to alter your code whenever you want to change the configuration. | ||
|
||
we choose the last method, namely **configurate with code**, The change of configuration should be also released after review. The application package itself is capable to be deployed in several environments, only by specifing the running environment. |
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.
method 换为 way 或 strategy 会不会好一点?
docs/source/en/basics/config.md
Outdated
``` | ||
As demonstrated above, the framework overwirte arrays instead of merging them. | ||
|
||
## plug-in Configuration |
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.
Plugin
docs/source/en/basics/config.md
Outdated
}; | ||
``` | ||
|
||
### Importing plugins |
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.
Hook 或 Mount 貌似更准确一点
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.
how about 'load' or 'use'
ps: Is there any suggestions for the case sensitivity of subTitles?
cc @atian25 |
'config.md' is translated by @jwssdwed and proofread by @Brian175 and finalized by @mmoaay