mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-30 06:39:49 +02:00
Basic dialog intl support for level dialogs, Issue #42
This commit is contained in:
parent
2837315c7d
commit
2617357460
21 changed files with 1716 additions and 1388 deletions
|
@ -8,49 +8,51 @@ exports.level = {
|
|||
"git revert": true
|
||||
},
|
||||
"startDialog": {
|
||||
"childViews": [
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"## Git Commits",
|
||||
"A commit in a git repository records a snapshot of all the files in your directory. It\'s like a giant copy and paste, but even better!",
|
||||
"",
|
||||
"Git wants to keep commits as lightweight as possible though, so it doesn't just copy the entire directory every time you commit. It actually stores each commit as a set of changes, or a \"delta\", from one version of the repository to the next. That\'s why most commits have a parent commit above them -- you\'ll see this later in our visualizations.",
|
||||
"",
|
||||
"In order to clone a repository, you have to unpack or \"resolve\" all these deltas. That's why you might see the command line output:",
|
||||
"",
|
||||
"`resolving deltas`",
|
||||
"",
|
||||
"when cloning a repo.",
|
||||
"",
|
||||
"It's a lot to take in, but for now you can think of commits as snapshots of the project. Commits are very light and switching between them is wicked fast!"
|
||||
]
|
||||
"en": {
|
||||
"childViews": [
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"## Git Commits",
|
||||
"A commit in a git repository records a snapshot of all the files in your directory. It\'s like a giant copy and paste, but even better!",
|
||||
"",
|
||||
"Git wants to keep commits as lightweight as possible though, so it doesn't just copy the entire directory every time you commit. It actually stores each commit as a set of changes, or a \"delta\", from one version of the repository to the next. That\'s why most commits have a parent commit above them -- you\'ll see this later in our visualizations.",
|
||||
"",
|
||||
"In order to clone a repository, you have to unpack or \"resolve\" all these deltas. That's why you might see the command line output:",
|
||||
"",
|
||||
"`resolving deltas`",
|
||||
"",
|
||||
"when cloning a repo.",
|
||||
"",
|
||||
"It's a lot to take in, but for now you can think of commits as snapshots of the project. Commits are very light and switching between them is wicked fast!"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Let's see what this looks like in practice. On the right we have a visualization of a (small) git repository. There are two commits right now -- the first initial commit, `C0`, and one commit after that `C1` that might have some meaningful changes.",
|
||||
"",
|
||||
"Hit the button below to make a new commit"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"There we go! Awesome. We just made changes to the repository and saved them as a commit. The commit we just made has a parent, `C1`, which references which commit it was based off of."
|
||||
],
|
||||
"command": "git commit",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Go ahead and try it out on your own! After this window closes, make two commits to complete the level"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Let's see what this looks like in practice. On the right we have a visualization of a (small) git repository. There are two commits right now -- the first initial commit, `C0`, and one commit after that `C1` that might have some meaningful changes.",
|
||||
"",
|
||||
"Hit the button below to make a new commit"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"There we go! Awesome. We just made changes to the repository and saved them as a commit. The commit we just made has a parent, `C1`, which references which commit it was based off of."
|
||||
],
|
||||
"command": "git commit",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Go ahead and try it out on your own! After this window closes, make two commits to complete the level"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue