Skip to content

Commit

Permalink
add --lang option to tutorial fixes issue #173 (#174)
Browse files Browse the repository at this point in the history
* add --lang option to tutorial fixes issue #173

* Update src/markdown/tutorial/part-1/01-orientation.md

Co-authored-by: Isaac Lee <16869656+ijlee2@users.noreply.github.com>

* fix typo issue #173

Co-authored-by: Isaac Lee <16869656+ijlee2@users.noreply.github.com>
  • Loading branch information
fozy81 and ijlee2 committed Mar 20, 2021
1 parent 8f26cca commit 5e6610d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/markdown/tutorial/part-1/01-orientation.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ If a version number is shown, you're ready to go.

## Creating a New Ember App with Ember CLI

We can create a new project using Ember CLI's `new` command. It follows the pattern `ember new <project-name>`. In our case, the project name would be `super-rentals`:
We can create a new project using Ember CLI's `new` command. It follows the pattern `ember new <project-name>`. In our case, the project name would be `super-rentals`. We will also include a `--lang en` option. This sets our app's primary language to English and improves the website's [accessibility](../../../accessibility/application-considerations/).

```run:ignore
Hack: make an empty package.json to convince ember-cli we are really not in an Ember project. Otherwise, we will get the "You cannot use the new command inside an ember-cli project." error when running `ember new`.
Expand All @@ -47,11 +47,11 @@ Hack: make an empty package.json to convince ember-cli we are really not in an E
#[cfg(all(ci, unix))]
#[display(ember new super-rentals)]
ember new super-rentals --yarn \
ember new super-rentals --lang en --yarn \
| awk '{ gsub("Yarn", "npm"); gsub("yarn", "npm"); print }'
#[cfg(not(all(ci, unix)))]
ember new super-rentals --yarn
ember new super-rentals --lang en --yarn
```

```run:command hidden=true
Expand Down

0 comments on commit 5e6610d

Please sign in to comment.