Skip to content

Commit

Permalink
Merge branch 'development' into ft/bydefault-aligned
Browse files Browse the repository at this point in the history
  • Loading branch information
vipinpaul authored Apr 15, 2024
2 parents 1d17783 + e5faf61 commit d97a537
Show file tree
Hide file tree
Showing 8 changed files with 1,115 additions and 263 deletions.
4 changes: 3 additions & 1 deletion e2e-tests/myFixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ type myFixture = {
english: string,
hindi: string,
russian: string,
farsi: string
farsi: string,
arabic: string
}
const myFixtureTest = myTest.extend<myFixture>({
userName: "Playwright user",
Expand Down Expand Up @@ -60,6 +61,7 @@ const myFixtureTest = myTest.extend<myFixture>({
hindi: "Hindi",
russian: "Russian",
farsi: "Farsi",
arabic: "Arabic",
textUnderscore: "Translation_test_project",
obsUnderscore: "Obs_test_project",
syncName: "Sync_Collab_Test",
Expand Down
8 changes: 5 additions & 3 deletions renderer/src/components/Login/LeftLogin.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,14 @@ const LeftLogin = () => {
};
function formSubmit(event) {
event.preventDefault();
if (values.username.length < 3 || values.username.length > 15) {
const newValue = values;
newValue.username = newValue.username.trim();
if (newValue.username.length < 3 || newValue.username.length > 15) {
displayError('The input has to be between 3 and 15 characters long');
} else if (users.length > 0 && users.find((item) => (item.username.toLowerCase() === values.username.toLowerCase().trim()))) {
} else if (users.length > 0 && users.find((item) => (item.username.toLowerCase() === newValue.username.toLowerCase()))) {
displayError('User exists, Check archived and active tab by click on view more.');
} else {
handleSubmit(values);
handleSubmit(newValue);
setValues({});
}
}
Expand Down
1 change: 1 addition & 0 deletions renderer/src/modules/projects/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const languages = [
{ title: 'Farsi', code: 'fa' },
{ title: 'French', code: 'fr' },
{ title: 'Nepali', code: 'ne' },
{ title: 'Arabic', code: 'ar' },
];

function ProgressCircle({ isFilled, count, text }) {
Expand Down
283 changes: 283 additions & 0 deletions renderer/src/translations/ar.js

Large diffs are not rendered by default.

278 changes: 278 additions & 0 deletions renderer/src/translations/ar.json

Large diffs are not rendered by default.

522 changes: 263 additions & 259 deletions renderer/src/translations/fa.js

Large diffs are not rendered by default.

278 changes: 278 additions & 0 deletions renderer/src/translations/fa.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions renderer/src/translations/i18n.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
// import the translation files
import { Ar } from './ar';
import { En } from './en';
import { Hi } from './hi';
import { Ru } from './ru';
Expand Down Expand Up @@ -31,6 +32,9 @@ i18n
ne: {
translation: Ne,
},
ar: {
translation: Ar,
},
},
});

Expand Down

0 comments on commit d97a537

Please sign in to comment.