Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locale fix #9

Merged
merged 8 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
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
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
"lic_transitive": "npx @adsk/adsk-npm-license-puller --path . --app-name 'dynamo-home' --verbose --about-box ./license_output/about-box_transitive.html --about-box-type desktop --transitive --year $(date) --paos ./license_output/paos_transitive.csv",
"generate_license": "npm run lic_direct && npm run lic_transitive",
"test:unit": "NODE_ENV=test jest tests/App.test.js",
"test:e2e": "playwright test tests/e2e.test.js"
"test:e2e": "playwright test tests/e2e.test.js",
"lic_direct": "npx @adsk/adsk-npm-license-puller --path . --app-name 'home-page' --verbose --about-box ./license_output/about-box_direct.html --about-box-type desktop --year $(date \"+%Y\") --paos ./license_output/paos_direct.csv",
"lic_transitive": "npx @adsk/adsk-npm-license-puller --path . --app-name 'home-page' --verbose --about-box ./license_output/about-box_transitive.html --about-box-type desktop --transitive --year $(date \"+%Y\") --paos ./license_output/paos_transitive.csv",
"generate_license": "npm run lic_direct && npm run lic_transitive"
QilongTang marked this conversation as resolved.
Show resolved Hide resolved
},
"eslintConfig": {
"extends": [
Expand Down
2 changes: 0 additions & 2 deletions src/components/Learning/PageLearning.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export function LearningPage(){

// A method exposed to the backend used to set the interactive guides data coming from Dynamo
const receiveInteractiveGuidesDataFromDotNet = (jsonData) => {
console.log('Received interactive guides data from .NET:', jsonData);

try {
// jsonData is already an object, so no need to parse it
const data = jsonData;
Expand Down
2 changes: 0 additions & 2 deletions src/components/Recent/PageRecent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export function RecentPage ({ setIsDisabled }){

// A method exposed to the backend used to set the graph data coming from Dynamo
const receiveGraphDataFromDotNet = (jsonData) => {
console.log('Received data from .NET:', jsonData);

try {
// jsonData is already an object, so no need to parse it
const data = jsonData;
Expand Down
2 changes: 0 additions & 2 deletions src/components/Samples/PageSamples.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export function SamplesPage (){

// A method exposed to the backend used to set the samples data coming from Dynamo
const receiveSamplesDataFromDotNet = (jsonData) => {
console.log('Received data from .NET:', jsonData);

try {
// jsonData is already an object, so no need to parse it
const data = jsonData;
Expand Down
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@font-face {
font-family: 'ArtifaktElement';
src: url('http://localhost/embeddedFonts/ArtifaktElement-Regular.woff');
src: url('#fontStyle');
}

body {
Expand Down
2 changes: 2 additions & 0 deletions src/localization/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export const getMessagesForLocale = (locale) => {
switch(locale) {
case 'en':
return englishMessages;
case 'en-US':
return englishMessages;
default:
return englishMessages;
}
Expand Down
Loading