Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
09eee3d
2021-05-25: Adding updated training CSV files for Spanish, based on R…
hbehan May 25, 2021
12a052d
Round 1 Testing Updates
avel22 May 26, 2021
3544b9f
Round 1 Testing Updates 2
avel22 Jun 3, 2021
c746d44
Second Session CSV
avel22 Jun 3, 2021
b643779
2021-06-23: New scenario images added for Spanish site; system files …
hbehan Jun 23, 2021
673f493
Lemon Example Image
avel22 Jun 25, 2021
f235220
Changes to CSV files accents
avel22 Jun 25, 2021
70089f0
Trying to get the locales to work in a sensible way.
danfunk Jul 22, 2021
15f4dc9
repairing csv files that contained errors.
danfunk Aug 18, 2021
36763ea
2021-09-29: Latest updates for Spanish, mainly new dichos pages
hbehan Sep 29, 2021
fbd69e8
fixed image size in dichos, corrected byg in angular.json, removed "w…
danfunk Sep 29, 2021
70eab87
Prefer not to answer is a tricky translation problem, had to manually…
danfunk Sep 29, 2021
e346469
2021-09-30: Pushing up remaining set of training images for Spanish
hbehan Sep 30, 2021
e5cece7
Changes to CSV files
avel22 Oct 1, 2021
3b8f2af
Changes to CSV Files session 1 and 2
avel22 Oct 1, 2021
2aae117
2021-10-02: Updated EN csv files and replace some scenario images
hbehan Oct 3, 2021
851a1d4
fixes -
danfunk Oct 6, 2021
289d35a
Pushed last remaining training images and updated Dichos json file
hbehan Oct 8, 2021
411b07e
Merge branch 'feature/spanish_202105' of https://github.com/TeachmanL…
hbehan Oct 8, 2021
0c54f9a
We were erroring out in production english because we didn't have a d…
danfunk Oct 12, 2021
8420172
fixing engish csv for session 2 of spanish study.
danfunk Oct 20, 2021
125d812
Changed condition names + removed dichos pages from ENGLISH_BILINGUAL
hbehan Oct 27, 2021
4bcb7d7
Trying to fix a bug in the session_index / step_index. It's deep, an…
danfunk Oct 29, 2021
9aa0de4
Updated files for AngularTraining data reconfiguration
hbehan Dec 2, 2021
da7ad99
Updated files for AngularTraining data reconfiguration
hbehan Dec 2, 2021
e3d5fc5
Updated json files for AngularTraining data reconfiguration (old file…
hbehan Dec 24, 2021
30bf7b8
Fix a typeo in the messages xml file for spanish.
danfunk Jan 21, 2022
e65931f
2022-01-26: Small translation/text fixes
hbehan Jan 26, 2022
ab4cc64
Fixed training images which weren't displaying based on tester feedback
hbehan Jan 31, 2022
d13f63e
Changes to second session Spanish csv file
avel22 Feb 4, 2022
b25b98b
Reformatted second session Spanish csv file to correct utf 8 format
avel22 Feb 4, 2022
d102faf
Fixed pieces not displaying in Spanish on ES, fixed spelling error in…
hbehan Mar 8, 2022
be24bde
Update README.md
almzayyen Mar 14, 2022
40e87e8
Update Readme for spanish and spanish-en builds
almzayyen Mar 14, 2022
ced5f56
Add missing json files to en-ES directory; updated dichos json file
hbehan Mar 25, 2022
6ce1851
Updating en build instructions
almzayyen Mar 29, 2022
eca5992
Removed 'Welcome to MT Training' banner
hbehan Jun 15, 2022
bb845e3
Added fixes to dichos, imagery_prime + lemon json files; fixed paddin…
hbehan Jun 23, 2022
af689b4
Added small cosmetic fixes to RecognitionRatings task + training scor…
hbehan Jun 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Copy the files in ./dist/training-prototype up to the web server and placement i

## Adding to MindTrails

Run `ng build --prod --build-optimizer --output-hashing none --base-href=/calm/angular/`
Copy ./dist/training-prototype to [MindTrails Checkout]/r01/src/main/resources/static/angular
Something like `cp -r dist/training-prototype ~/code/MindTrails/r01/src/main/resources/static/angular`
Run `ng build --prod --build-optimizer --output-hashing none --base-href=/spanish/angular/`
Copy ./dist/training-prototype to [MindTrails Checkout]/spanish/src/main/resources/static/angular
Something like `cp -r dist/training-prototype ~/code/MindTrails/spanish/src/main/resources/static/angular`

## Localization
This app can be built for both English and Spanish. If you want to run locally and see the Spanish version of the site use:
Expand All @@ -40,16 +40,22 @@ editor like [PoEdit](https://poeditor.com/) make the updates, and save them.
We may be running multiple studies with difference settings at the same time, for this reason
we provide a mechanism for doing custom builds, for instance, in Kaiser you would do:

## Kaiser example
`ng build --configuration kaiser --build-optimizer --output-hashing none --base-href=/kaiser/angular/`
`cp -r dist/training-prototype/en-US ~/code/MindTrails/kaiser/src/main/resources/static/angular`

A complete build of spanish for deployment like:
(NOTE: For spanish we will need to build both an engish version and an spanish version, follow the 'Adding to Mindtrails'
section above for building in english. then do the following to create the spanish language version.)

## Spanish Version

`ng build --configuration spanish --build-optimizer --output-hashing none --base-href=/spanish/angular/`
`cp -r dist/training-prototype/es-ES ~/code/MindTrails/spanish/src/main/resources/static/angular-es`
`ng build --prod --build-optimizer --output-hashing none --base-href=/spanish/angular/`
`cp -r dist/training-prototype/en-US ~/code/MindTrails/spanish/src/main/resources/static/angular`
`cp -r dist/training-prototype/es-ES/ ~/code/MindTrails/spanish/src/main/resources/static/angular-es`

## Spanish-EN version
`ng build --configuration spanish-en --prod --build-optimizer --output-hashing none --base-href=/spanish/angular/`
`cp -r dist/training-prototype/en-ES/ ~/code/MindTrails/spanish/src/main/resources/static/angular`


## Code scaffolding
Expand Down
27 changes: 26 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"i18n": {
"sourceLocale": "en-US",
"locales": {
"es-ES": "src/i18n/messages.es.xlf"
"es-ES": "src/i18n/messages.es.xlf",
"en-ES": "src/i18n/messages.en.xlf"
}
},
"architect": {
Expand Down Expand Up @@ -88,6 +89,27 @@
"vendorChunk": false,
"buildOptimizer": true
},
"spanish-en": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.spanish.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"localize": [
"en-ES"
],
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
},

"kaiser": {
"fileReplacements": [
{
Expand Down Expand Up @@ -118,6 +140,9 @@
},
"es": {
"browserTarget": "training-prototype:build:es"
},
"spanish-en": {
"browserTarget": "training-prototype:build:spanish-en"
}
}
},
Expand Down
Loading