Skip to content

Commit 1608e71

Browse files
committed
Fix korean translation, add proper lang property to html tag
1 parent 643257f commit 1608e71

File tree

12 files changed

+100
-12
lines changed

12 files changed

+100
-12
lines changed

build/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const path = require('path');
2+
const fs = require('fs');
23

34
const Metalsmith = require('metalsmith');
45
const multimatch = require('multimatch');
@@ -206,4 +207,8 @@ Metalsmith(cwd)
206207
if (err) {
207208
throw err;
208209
}
210+
const fpath = path.join(cwd, 'content/links_failed.json')
211+
if (fs.existsSync(fpath)) {
212+
console.log(fs.readFileSync(fpath).toString())
213+
}
209214
});

build/plugins/locales.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function plugin(opts) {
3232
const otherLocales = locales.filter(l => l !== defaultLocale);
3333

3434
// builds out the file structure for all the other locales
35-
otherLocales.forEach((locale) => {
35+
process.env.CREATE_MISSING && otherLocales.forEach((locale) => {
3636
requiredFiles.forEach((file) => {
3737
const original_file = file.replace('{LOCALE}', defaultLocale);
3838
const original_file_path = path.resolve(sourcePath, original_file);

content/docs/ko/getting-started/1-quick-start.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ NativeScript-Vue를 쉽게 사용해보고 싶다면, [NativeScript Playground](
88
이미 여러분의 로컬 머신에서 작업할 준비가 되었고, [네이티브 개발을 위한 시스템](/ko/docs/getting-started/installation)이 준비되었다면 템플릿을 사용하여 시작할 수 있습니다.
99

1010
```shell
11-
$ tns create my-app --template nativescript-vue-template
12-
$ cd my-app
11+
$ $ npm install -g @vue/cli @vue/cli-init
12+
$ vue init nativescript-vue/vue-cli-template <project-name>
13+
$ cd <project-name>
14+
$ npm install
1315
```
1416

1517
그리고나면 당신의 앱을 다음처럼 열 수 있습니다.
1618

1719
```shell
18-
$ tns run android # 안드로이드의 경우
20+
$ npm run watch:<platform>
1921
```
2022

21-
```shell
22-
$ tns run ios # iOS의 경우
23-
```
23+
`<platform>`: `ios` | `android`.
2424

2525
사용가능한 템플릿의 더 자세한 정보는 [템플릿 문서](/ko/docs/getting-started/templates)를 참고하세요.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
title: Sample Tasks for the Playground
3+
contributors: [ikoevska]
4+
---
5+
6+
If you want to explore the [NativeScript Playground](https://play.nativescript.org?template=play-vue), you can start by creating a simple to-do app with the following requirements:
7+
8+
* Basic design
9+
* Two-tab layout
10+
* One tab shows active tasks and lets you add new tasks
11+
* Second tab lists completed tasks
12+
* (Coming soon) Basic functionality
13+
* (Coming soon) Add tasks: Users can add tasks as text
14+
* (Coming soon) View tasks
15+
* (Coming soon) Newly added tasks are listed as active and can be tapped
16+
* (Coming soon) Completed tasks are listed on a separate tab
17+
* (Coming soon) Complete tasks: Tapping an active task completes it and moves it to the other tab
18+
* (Coming soon) Delete tasks: Tapping an "X" button removes active or completed tasks
19+
* (Coming soon) Advanced functionality
20+
* (Coming soon) Schedule tasks: Users can set deadlines for tasks by picking a date from a calendar widget
21+
* (Coming soon) Manage tasks in bulk
22+
23+
> **TIP:** All sections of this tutorial contain a *Some NativeScript basics* and *Requirement implementation* sub-sections. You can skip the basics sub-section and jump straight to the implementation for a more hands-on approach.
24+
25+
## The bare Vue.js template
26+
27+
![](/screenshots/ns-playground/playground-home.png)
28+
29+
All development effort for this tutorial happens in `app.js` and `app.css`, containing the app functionality and taking care of the app styles, respectively.
30+
31+
The `app.js` for your newly created Vue.js project consists of a simple `template` declaration without any functionality. As you drag and drop user interface components to the app, the Playground also adds a `methods` block and populates it with code containing actual app functionality.
32+
33+
In `app.js`, you'll be working in the `template` block to design the user interface or in the `methods` block to build the app functionality. The `template` block requires NativeScript-compatible XML. The `methods` block accepts both Vue.js and NativeScript JavaScript code.
34+
35+
## Basic design
36+
37+
### Section progress
38+
39+
Here's how your app will look at the start and at the end of this section.
40+
41+
| Initial screen | Tab 1 | Tab 2 |
42+
|-------|-----|-----|
43+
| ![Bare Vue.js template](/screenshots/ns-playground/two-tabs-start.jpg) | ![First tab](/screenshots/ns-playground/two-tabs-tab-1.jpg) | ![Second tab](/screenshots/ns-playground/two-tabs-tab-2.jpg) |
44+
45+
### Some NativeScript basics
46+
47+
The `<Page>` element is the top-level user interface element of every NativeScript+Vue.js app. All other user interface elements are nested within.
48+
49+
The `<ActionBar>` element shows an action bar for the `<Page>`. A `<Page>` cannot contain more than one `<ActionBar>`.
50+
51+
Typically, after the `<ActionBar>`, you will have navigation components (such as a drawer or a tab view) or layout components. These elements control the layout of your app and let you determine how to place other user interface elements inside.
52+
53+
### Requirement implementation
54+
55+
Use the `<TabView>` component to create a two-tab app.
56+
57+
1. Remove the default `<ScrollView>` block and all its contents that come with the template.<br/>`<ScrollView>` components are top-level layout containers for scrollable content.
58+
1. Drag and drop the `<TabView>` component in its place.<br/>The Playground doesn't apply code formatting and doesn't take care of indentation when inserting new components.
59+
1. Configure the height of the `<TabView>` to fill the screen (set it to 100%).<br/>On an iOS device the default height setting causes the tabs to show somewhere around the middle of the screen.
60+
1. Change the titles of the `<TabViewItem>` elements and their contents to reflect their purpose.<br/>At this point, text content for the tabs is shown in `<Label>` components with no styling and formatting. Apply the `textWrap="true"` property to the respective `<Label>` components to improve the visualization of the text.
61+
62+
```JavaScript
63+
new Vue({
64+
65+
template: `
66+
<Page class="page">
67+
<ActionBar title="My Tasks" class="action-bar" />
68+
69+
<TabView height="100%">
70+
<TabViewItem title="To Do">
71+
<Label text="This tab will list active tasks and will let users add new tasks." textWrap="true" />
72+
</TabViewItem>
73+
<TabViewItem title="Completed">
74+
<Label text="This tab will list completed tasks for tracking." textWrap="true" />
75+
</TabViewItem>
76+
</TabView>
77+
78+
</Page>
79+
`,
80+
81+
}).$start();
82+
```

content/docs/ko/routing/vue-router.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Vue Router
33
contributors: [qgp9]
44
---
55

6-
[수동 라우팅](/ko/docs/routing/manual-routing) 이 당신의 유스-케이스와 잘 맞지 않는다면, 완전히 지원되는 [Vue Router](https://router.vuejs.org/ko) 를 배워보세요.
6+
[수동 라우팅](/ko/docs/routing/manual-routing) 이 당신의 유스-케이스와 잘 맞지 않는다면, 완전히 지원되는 [Vue Router](https://router.vuejs.org/kr) 를 배워보세요.
77

88
## 설치
99
명령줄에서 다음을 실행합니다:
@@ -13,7 +13,7 @@ npm i vue-router --save
1313

1414
## 사용법
1515
전체 예제를 설명과 함께 잘라서 봅시다.
16-
Vue Router에는 더 다양한 트릭들이 있기 때문에 [공식문서](https://router.vuejs.org/ko/)를 꼭 방문해 보세요.
16+
Vue Router에는 더 다양한 트릭들이 있기 때문에 [공식문서](https://router.vuejs.org/kr)를 꼭 방문해 보세요.
1717

1818
---
1919
Vue, VueRouter 를 require 하고, 서로 악수하게 합니다 🤝

content/index.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dest: index.html
1616
NativeScript-Vue is the right choice for you!
1717
</p>
1818

19-
<a href="<%= meta.lang(current, null, 'docs/introduction') %>"
19+
<a href="/en/docs/introduction"
2020
class="px-8 py-4 inline-block bg-green text-white font-bold text-lg no-underline mt-8">
2121
Get Started
2222
</a>

0 commit comments

Comments
 (0)