From be17f69ad6efab30cd10bf7020c3818ad3d8d590 Mon Sep 17 00:00:00 2001 From: qgp9 Date: Tue, 27 Feb 2018 19:43:07 +0200 Subject: [PATCH 01/14] translate to KO; init and introduction --- build/index.js | 3 +- .../docs/ko/elements/action-bar/action-bar.md | 50 +++++++ .../ko/elements/action-bar/action-item.md | 56 ++++++++ .../elements/action-bar/navigation-button.md | 30 ++++ .../elements/components/activity-indicator.md | 33 +++++ content/docs/ko/elements/components/button.md | 35 +++++ .../ko/elements/components/date-picker.md | 44 ++++++ .../docs/ko/elements/components/html-view.md | 27 ++++ content/docs/ko/elements/components/image.md | 47 +++++++ content/docs/ko/elements/components/label.md | 47 +++++++ .../ko/elements/components/list-picker.md | 41 ++++++ .../docs/ko/elements/components/list-view.md | 56 ++++++++ .../docs/ko/elements/components/progress.md | 34 +++++ .../ko/elements/components/scroll-view.md | 35 +++++ .../docs/ko/elements/components/search-bar.md | 41 ++++++ .../ko/elements/components/segmented-bar.md | 41 ++++++ content/docs/ko/elements/components/slider.md | 42 ++++++ content/docs/ko/elements/components/switch.md | 39 ++++++ .../docs/ko/elements/components/tab-view.md | 39 ++++++ .../docs/ko/elements/components/text-field.md | 48 +++++++ .../docs/ko/elements/components/text-view.md | 61 +++++++++ .../ko/elements/components/time-picker.md | 46 +++++++ .../docs/ko/elements/components/web-view.md | 34 +++++ content/docs/ko/elements/dialogs/action.md | 24 ++++ content/docs/ko/elements/dialogs/alert.md | 36 +++++ content/docs/ko/elements/dialogs/confirm.md | 35 +++++ content/docs/ko/elements/dialogs/login.md | 24 ++++ content/docs/ko/elements/dialogs/prompt.md | 35 +++++ .../ko/elements/layouts/absolute-layout.md | 46 +++++++ .../docs/ko/elements/layouts/dock-layout.md | 60 ++++++++ .../ko/elements/layouts/flexbox-layout.md | 101 ++++++++++++++ .../docs/ko/elements/layouts/grid-layout.md | 73 ++++++++++ .../docs/ko/elements/layouts/stack-layout.md | 74 ++++++++++ .../docs/ko/elements/layouts/wrap-layout.md | 46 +++++++ .../docs/ko/getting-started/1-quick-start.md | 27 ++++ .../docs/ko/getting-started/2-installation.md | 48 +++++++ .../docs/ko/getting-started/3-templates.md | 75 ++++++++++ .../getting-started/4-nativescript-plugins.md | 29 ++++ .../docs/ko/getting-started/5-vue-plugins.md | 85 ++++++++++++ content/docs/ko/introduction.md | 44 ++++++ content/docs/ko/routing/manual-routing.md | 128 ++++++++++++++++++ content/docs/ko/routing/vue-router.md | 99 ++++++++++++++ content/docs/ko/utilities/v-template.md | 57 ++++++++ content/docs/ko/utilities/v-view.md | 56 ++++++++ 44 files changed, 2130 insertions(+), 1 deletion(-) create mode 100644 content/docs/ko/elements/action-bar/action-bar.md create mode 100644 content/docs/ko/elements/action-bar/action-item.md create mode 100644 content/docs/ko/elements/action-bar/navigation-button.md create mode 100644 content/docs/ko/elements/components/activity-indicator.md create mode 100644 content/docs/ko/elements/components/button.md create mode 100644 content/docs/ko/elements/components/date-picker.md create mode 100644 content/docs/ko/elements/components/html-view.md create mode 100644 content/docs/ko/elements/components/image.md create mode 100644 content/docs/ko/elements/components/label.md create mode 100644 content/docs/ko/elements/components/list-picker.md create mode 100644 content/docs/ko/elements/components/list-view.md create mode 100644 content/docs/ko/elements/components/progress.md create mode 100644 content/docs/ko/elements/components/scroll-view.md create mode 100644 content/docs/ko/elements/components/search-bar.md create mode 100644 content/docs/ko/elements/components/segmented-bar.md create mode 100644 content/docs/ko/elements/components/slider.md create mode 100644 content/docs/ko/elements/components/switch.md create mode 100644 content/docs/ko/elements/components/tab-view.md create mode 100644 content/docs/ko/elements/components/text-field.md create mode 100644 content/docs/ko/elements/components/text-view.md create mode 100644 content/docs/ko/elements/components/time-picker.md create mode 100644 content/docs/ko/elements/components/web-view.md create mode 100644 content/docs/ko/elements/dialogs/action.md create mode 100644 content/docs/ko/elements/dialogs/alert.md create mode 100644 content/docs/ko/elements/dialogs/confirm.md create mode 100644 content/docs/ko/elements/dialogs/login.md create mode 100644 content/docs/ko/elements/dialogs/prompt.md create mode 100644 content/docs/ko/elements/layouts/absolute-layout.md create mode 100644 content/docs/ko/elements/layouts/dock-layout.md create mode 100644 content/docs/ko/elements/layouts/flexbox-layout.md create mode 100644 content/docs/ko/elements/layouts/grid-layout.md create mode 100644 content/docs/ko/elements/layouts/stack-layout.md create mode 100644 content/docs/ko/elements/layouts/wrap-layout.md create mode 100644 content/docs/ko/getting-started/1-quick-start.md create mode 100644 content/docs/ko/getting-started/2-installation.md create mode 100644 content/docs/ko/getting-started/3-templates.md create mode 100644 content/docs/ko/getting-started/4-nativescript-plugins.md create mode 100644 content/docs/ko/getting-started/5-vue-plugins.md create mode 100644 content/docs/ko/introduction.md create mode 100644 content/docs/ko/routing/manual-routing.md create mode 100644 content/docs/ko/routing/vue-router.md create mode 100644 content/docs/ko/utilities/v-template.md create mode 100644 content/docs/ko/utilities/v-view.md diff --git a/build/index.js b/build/index.js index 564bef03..60acf740 100644 --- a/build/index.js +++ b/build/index.js @@ -38,6 +38,7 @@ Metalsmith(cwd) moment, localeMap: { 'en': 'English', + 'ko': 'Korean', }, home(current) { const locale = current.locale || this.defaultLocale; @@ -110,7 +111,7 @@ Metalsmith(cwd) }) .use(locales({ defaultLocale: 'en', - locales: ['en'] + locales: ['en', 'ko'] })) .use(order()) .use(categories()) diff --git a/content/docs/ko/elements/action-bar/action-bar.md b/content/docs/ko/elements/action-bar/action-bar.md new file mode 100644 index 00000000..119f4f7d --- /dev/null +++ b/content/docs/ko/elements/action-bar/action-bar.md @@ -0,0 +1,50 @@ +--- +title: ActionBar +apiRef: https://docs.nativescript.org/api-reference/classes/_ui_action_bar_.actionbar +contributors: [rigor789, eddyverbruggen] +--- + +The ActionBar component is a NativeScript abstraction for the Android ActionBar and iOS NavigationBar. + +--- + +#### Using a title + +```html + +``` + +#### Using a custom title view + +```html + + + + + +``` + +#### Setting an App Icon for Android + +```html + +``` + +#### Removing the border +On iOS and Android a little border is drawn at the bottom of the ActionBar. +Furthermore, the background color of the ActionBar on iOS is slightly different to what you specify +because iOS applies a filter. To remove this filter and the border, set `flat` to `true`. + +```html + +``` + +## Props + +| name | type | description | +|------|------|-------------| +| `title` | `String` | The title to be shown in the ActionBar. +| `android.icon` | `String` | The icon to be shown on Android. +| `android.iconVisibility` | `String` | Sets when the icon is visible. +| `flat` | `boolean` | Removes the border and iOS color filter. Default `false`. diff --git a/content/docs/ko/elements/action-bar/action-item.md b/content/docs/ko/elements/action-bar/action-item.md new file mode 100644 index 00000000..2491bc63 --- /dev/null +++ b/content/docs/ko/elements/action-bar/action-item.md @@ -0,0 +1,56 @@ +--- +title: ActionItem +apiRef: https://docs.nativescript.org/api-reference/classes/_ui_action_bar_.actionitem +contributors: [rigor789] +--- + +The ActionItem component is used to add additional action buttons to the ActionBar. + +--- + +```html + + + + +``` + +#### Conditionally showing action items + +ActionItems can be displayed based on a condition using the `v-show` directive. + +```html + + + + + +``` + +## Props + +| name | type | description | +|------|------|-------------| +| `ios.systemIcon` | `String` | Sets the icon for iOS. +| `android.systemIcon` | `String` | Sets the icon for Android. +| `ios.position` | `String` | Sets the position for iOS.
Possible values:
- `left` (default): Puts the item on the left side of the ActionBar.
- `right`: Puts the item on the right side of the ActionBar. +| `android.position` | `String` | Sets the position for Android.
Possible values:
- `actionBar` (default): Puts the item in the ActionBar.
- `popup`: Puts the item in the options menu. Items will be rendered as text.
- `actionBarIfRoom`: Puts the item in the ActionBar if there is room for it. Otherwise, puts it in the options menu. + +## Events + +| name | description | +|------|-------------| +| `tap`| Emitted when the ActionItem has been tapped. diff --git a/content/docs/ko/elements/action-bar/navigation-button.md b/content/docs/ko/elements/action-bar/navigation-button.md new file mode 100644 index 00000000..6077f361 --- /dev/null +++ b/content/docs/ko/elements/action-bar/navigation-button.md @@ -0,0 +1,30 @@ +--- +title: NavigationButton +apiRef: https://docs.nativescript.org/api-reference/classes/_ui_action_bar_.navigationbutton +contributors: [rigor789] +--- + +The NavigationButton component is a NativeScript abstraction for the Android navigation button, and the iOS back button. + +--- + +```html + + + +``` + +## Props + +| name | type | description | +|------|------|-------------| +| `text` | `String` | Sets the text to be shown on iOS. +| `android.systemIcon` | `String` | The icon to be shown on Android. + +*The icon list for Android can be found at , and the icons are the ones that start with `ic_` prefix.* + +## Events + +| name | description | +|------|-------------| +| `tap`| Emitted when the NavigationButton has been tapped. diff --git a/content/docs/ko/elements/components/activity-indicator.md b/content/docs/ko/elements/components/activity-indicator.md new file mode 100644 index 00000000..ddfd6433 --- /dev/null +++ b/content/docs/ko/elements/components/activity-indicator.md @@ -0,0 +1,33 @@ +--- +title: ActivityIndicator +apiRef: https://docs.nativescript.org/api-reference/classes/_ui_activity_indicator_.activityindicator +contributors: [MisterBrownRSA, rigor789] +--- + +The ActivityIndicator component adds a progress indicator that indicates that something is running in the background, prompting the user to pause. + +--- + +```html + +``` + +[> screenshots for=ActivityIndicator <] + +## Props + +| name | type | description | +|------|------|-------------| +| `busy` | `Boolean` | When `true`, the indicator is active. + +## Events + +| name | description | +|------|-------------| +| `busyChange`| Emitted when the `busy` property is changed. + +## Native Component + +| Android | iOS | +|---------|-----| +| android.widget.ProgressBar (indeterminate = true) | UIActivityIndicatorView diff --git a/content/docs/ko/elements/components/button.md b/content/docs/ko/elements/components/button.md new file mode 100644 index 00000000..bb8eabc0 --- /dev/null +++ b/content/docs/ko/elements/components/button.md @@ -0,0 +1,35 @@ +--- +title: Button +apiRef: https://docs.nativescript.org/api-reference/classes/_ui_button_.button +contributors: [MisterBrownRSA, rigor789, eddyverbruggen] +--- + +The Button component is used to display a button that can react to a tap event. + +The interaction is not limited to the tap event only, [read more about all the available gestures in NativeScript in the official documentation](https://docs.nativescript.org/ui/gestures). + +--- + +```html +