Skip to content

Commit

Permalink
localize rest of profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
haveyaseen committed Jul 19, 2021
1 parent 531547e commit 1ffee06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions locales/en/app.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ profile-gender-unknown = Unknown
profile-languages = My Languages
profile-language-native-hint = (Native)
profile-groups = My Groups
profile-upload-avatar = Upload Avatar
profile-avatar-upload-failed = Your avatar could not be changed successfully. Please try again.
profile-avatar-max-size = Avatars must be smaller than { $maxSize } in size.
## Email notifications unsubscription successful
email-unsubscribe-success-headline = Success!
Expand Down
7 changes: 5 additions & 2 deletions src/routes/profile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,13 @@
type="submit"
variant="TEXT"
className="w-full justify-center mb-2"
>Upload Avatar</ButtonLarge
><Localized id="Upload Avatar" /></ButtonLarge
>
<p class="text-gray-bitdark text-sm">
Avatars must be smaller than 5 MB in size.
<Localized
id="profile-avatar-max-size"
args={{ maxSize: "5 MB" }}
/>
</p>
</div>
</form>
Expand Down

0 comments on commit 1ffee06

Please sign in to comment.