Skip to content

Commit

Permalink
translation and change naming scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JWMatheo committed Sep 30, 2023
1 parent 60a675d commit 8bb0f6c
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 32 deletions.
8 changes: 2 additions & 6 deletions client/firebase.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"hosting": {
"site": "staging-sofan-app",
"site": "sofan-app",
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
Expand Down
4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"build:staging": "env-cmd -f staging.env npm run build",
"start:staging.mainnet": "env-cmd -f staging.mainnet.env npm start",
"build:staging.mainnet": "env-cmd -f staging.mainnet.env npm run build",
"start:sofan": "env-cmd -f sofan.env npm start",
"build:sofan": "env-cmd -f sofan.env npm run build",
"start:master": "env-cmd -f sofan.env npm start",
"build:master": "env-cmd -f sofan.env npm run build",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const LaunchpadAllHeader = ({ data, dataAthlete, hidePrice }) => {
className="launchpadallheader-data-wrap-athletename"
style={launchpadallheaderDataWrapthletename}
>
by {dataAthlete?.display_name}
par {dataAthlete?.display_name}
</span>
</Link>
<span
Expand All @@ -140,7 +140,7 @@ const LaunchpadAllHeader = ({ data, dataAthlete, hidePrice }) => {
className="launchpadallheader-data-wrap-nft"
style={launchpadallheaderDataWrapNft}
>
{data?.nft_collection_limit} items
{data?.nft_collection_limit} NFTs
{hidePrice ? <></> : <>- {data?.item_number} ETH</>}
</span>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ const LaunchpadAllLiveLaunches = ({
className="launchpadalllivelaunches-top-wrap"
style={respWidthTop}
>
<span style={launchpadalllivelaunchesTopWrapSpan}>Live launches</span>
<span style={launchpadalllivelaunchesTopWrapSpan}>
Collections en cours
</span>
{/* Filter */}
<div
id="launchpadalllivelaunches-dropdown-main"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const LaunchpadAllUpcomingLaunches = ({
style={respWidthTopLaunchpadAllUpcomingLaunches}
>
<span style={launchpadallUpcominglaunchesTopWrapSpan}>
Upcoming launches
Collections à venir
</span>
<div
className={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ const NftCollectionPageHeader = ({
className="nftcollectionheader-content-wrap-redirection-button"
to={`/collectionlive/${collectionBackendData[0]?.athlete_id}/${collectionAddress}`}
>
Mint un item !
Mint un NFT !
</Link>
<Link
to={`/athleteprofile/${collectionBackendData[0]?.athlete_id}`}
style={{ textDecoration: "none" }}
className="nftcollectionheader-content-subwrap"
>
<span className="nftcollectionheader-content-wrap-sport">
by {athleteDisplayName[0]?.display_name}
par {athleteDisplayName[0]?.display_name}
</span>
</Link>
<div className="nftcollectionheader-content-wrap-namestatssocial-wrap">
Expand Down Expand Up @@ -136,7 +136,7 @@ const NftCollectionPageHeader = ({
{totalOwnersForContract?.owners.length}
</span>
<span className="nftcollectionheader-content-wrap-stats-wrap-name">
Owners
Détenteurs
</span>
</div>
{hidePrice ? (
Expand Down
14 changes: 7 additions & 7 deletions client/src/Components/ProfileSubMenu/ProfileSubMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ const ProfileSubMenu = ({

const handleProfileSubMenuButtonClicked = (e) => {
if (isPageAthlete === false) {
if (e.target.innerHTML === "Collected NFT") {
if (e.target.innerHTML === "NFT détenus") {
setIsProfileSubMenuButtonClicked([true, false, false, false]);
} else if (e.target.innerHTML === "Activity") {
} else if (e.target.innerHTML === "Activité") {
setIsProfileSubMenuButtonClicked([false, true, false, false]);
} else if (e.target.innerHTML === "Offres formulées") {
setIsProfileSubMenuButtonClicked([false, false, true, false]);
Expand All @@ -85,8 +85,8 @@ const ProfileSubMenu = ({
}
} else {
if (
(e.target.innerHTML === "Collected NFT" ||
e.target.innerHTML === "Items") &&
(e.target.innerHTML === "NFT détenus" ||
e.target.innerHTML === "NFT") &&
isProfileSubMenuButtonClicked[0] !== true
) {
setIsProfileSubMenuButtonClicked([
Expand All @@ -99,7 +99,7 @@ const ProfileSubMenu = ({
false,
]);
} else if (
e.target.innerHTML === "Activity" &&
e.target.innerHTML === "Activité" &&
isProfileSubMenuButtonClicked[1] !== true
) {
setIsProfileSubMenuButtonClicked([
Expand Down Expand Up @@ -251,7 +251,7 @@ const ProfileSubMenu = ({
>
<Button
onClick={handleProfileSubMenuButtonClicked}
text={isNftCollectionPage ? "Items" : "Collected NFT"}
text={isNftCollectionPage ? "NFT" : "NFT détenus"}
style={
isProfileSubMenuButtonClicked[0]
? ProfileSubMenuButtonStyle.stylingClicked
Expand All @@ -268,7 +268,7 @@ const ProfileSubMenu = ({
>
<Button
onClick={handleProfileSubMenuButtonClicked}
text="Activity"
text="Activité"
style={
isProfileSubMenuButtonClicked[1]
? ProfileSubMenuButtonStyle.stylingClicked
Expand Down
10 changes: 5 additions & 5 deletions client/src/Components/UserActivityTab/UserActivityTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -850,11 +850,11 @@ const UserActivityTab = ({ ethPrice, currentProfileUserWallet }) => {
<div className="useractivitytab-table-container">
<div></div>
<div>NFT</div>
<div className="useractivitytab-table-container-price">Price</div>
<div className="useractivitytab-table-container-qty">Quantity</div>
<div className="useractivitytab-table-container-price">Prix</div>
<div className="useractivitytab-table-container-qty">Quantité</div>
<div></div>
<div>from</div>
<div>To</div>
<div>De</div>
<div>A</div>
<div>Date</div>
</div>
<div className="useractivitytab-content-container">
Expand Down Expand Up @@ -1073,7 +1073,7 @@ const UserActivityTab = ({ ethPrice, currentProfileUserWallet }) => {
</div>
<div className="useractivitytab-content-container-price-container">
<div className="useractivitytab-content-container-price-wrap">
<span>{"Price"} ETH</span>
<span>{"Prix"} ETH</span>
<span>
{/* {(
apiNftData[index]?.contract?.openSea?.floorPrice *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ function UserNameAndStats({

return (
<div className="username-and-stats-container">
<div className="username-container-userpage">{allUserInfo?.display_name}</div>
<div className="username-container-userpage">
{allUserInfo?.display_name}
</div>
<div className="stats-user-container">
<div className="line-separation-userprofile"></div>
<div
Expand All @@ -45,8 +47,8 @@ function UserNameAndStats({
{athletesFollowedCount}
</div>
<div className="following-athlete-title">
<div id="athlete-title-userpage">Athletes</div>
<span>following</span>
<div id="athlete-title-userpage">Athlètes</div>
<span>suivis</span>
</div>
</div>
<div className="line-separation-userprofile"></div>
Expand All @@ -58,8 +60,8 @@ function UserNameAndStats({
{athletesSupportingCount}
</div>
<div className="athlete-supporting-title">
<div id="athlete-title-userpage">Athletes</div>
<span>supporting</span>
<div id="athlete-title-userpage">Athlètes</div>
<span>soutenus</span>
</div>
</div>
<div className="line-separation-userprofile"></div>
Expand Down

0 comments on commit 8bb0f6c

Please sign in to comment.