-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
Create definition for Translate #372
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -54,22 +54,20 @@ const WelcomeMessage: React.SFC = () => ( | |||||||||||||
<> | ||||||||||||||
<p>{t('welcomeMessage1')}</p> | ||||||||||||||
<p> | ||||||||||||||
This release is still in beta, so expect there to be some issues. If you come across any, | ||||||||||||||
please{' '} | ||||||||||||||
{t('welcomeMessage2')}{' '} | ||||||||||||||
<ExternalLink href="https://github.com/samuelmaddock/metastream/issues"> | ||||||||||||||
submit a GitHub issue. | ||||||||||||||
{t('welcomeMessage3')} | ||||||||||||||
</ExternalLink> | ||||||||||||||
</p> | ||||||||||||||
<p> | ||||||||||||||
If you’d like to join in on the discussion, feel free to join the Discord community | ||||||||||||||
using the link at the bottom of the screen. | ||||||||||||||
{t('welcomeMessage4')} | ||||||||||||||
</p> | ||||||||||||||
<p> | ||||||||||||||
And if you’re coming from Rabbit,{' '} | ||||||||||||||
{t('welcomeMessage5')}{' '} | ||||||||||||||
<ExternalLink href="https://github.com/samuelmaddock/metastream/wiki/FAQ"> | ||||||||||||||
check out the FAQ | ||||||||||||||
{t('welcomeMessage6')} | ||||||||||||||
</ExternalLink>{' '} | ||||||||||||||
to learn how Metastream differs. | ||||||||||||||
{t('welcomeMessage7')} | ||||||||||||||
Comment on lines
+66
to
+70
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For special cases like this where the markup is mixed in with the string, I use a special React component called metastream/packages/metastream-app/src/components/Popup.tsx Lines 366 to 369 in 1cd9f13
And the actual translation string looks like this: metastream/packages/metastream-app/src/locale/en-US.ts Lines 48 to 49 in 1cd9f13
|
||||||||||||||
</p> | ||||||||||||||
<p>💖 Sam</p> | ||||||||||||||
</> | ||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -59,6 +59,7 @@ export default { | |||||
friendCode: 'Friend code', | ||||||
getStarted: 'Get Started', | ||||||
help: 'Help', | ||||||
homescreenRequestURL: 'Add to Session', | ||||||
info: 'Info', | ||||||
installToDesktop: 'Install to desktop', | ||||||
interact: 'Interact', | ||||||
|
@@ -135,6 +136,12 @@ export default { | |||||
theaterModeDesc: | ||||||
'Hide all non-video content on the webpage. Note that this might also hide soft subtitles.', | ||||||
thirdPartyIntegrations: 'Third-party Integrations', | ||||||
tipsGettingStarted1: 'Tips for getting started', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Two things to note here:
Suggested change
|
||||||
tipsGettingStarted2:'From here you can browse the web to find media to share in the session.', | ||||||
tipsGettingStarted3: 'Metastream supports many websites! Don,t see one in the list? Try adding the link anyway!', | ||||||
tipsGettingStarted4: 'Everyone in the session will need an account or subscription if required by a website.', | ||||||
tipsGettingStarted5: 'Is a website not working how you,d expect? Help us out by', | ||||||
tipsGettingStarted6: 'reporting the issue on GitHub.', | ||||||
toggleDJ: 'Toggle DJ', | ||||||
uiDockToRight: 'Dock to right side', | ||||||
uiUndock: 'Undock into floating overlays', | ||||||
|
@@ -153,5 +160,10 @@ export default { | |||||
welcome: 'Welcome', | ||||||
welcomeToMetastream: 'Welcome to Metastream', | ||||||
welcomeMessage1: 'Hi, thanks for trying out Metastream!', | ||||||
|
||||||
welcomeMessage2: 'This release is still in beta, so expect there to be some issues. If you come across any, please', | ||||||
welcomeMessage3: 'submit a GitHub issue.', | ||||||
welcomeMessage4: 'If you’d like to join in on the discussion, feel free to join the Discord community using the link at the bottom of the screen.', | ||||||
welcomeMessage5: 'And if you’re coming from Rabbit,', | ||||||
welcomeMessage6: 'check out the FAQ', | ||||||
welcomeMessage7: 'to learn how Metastream differs.' | ||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This particular file will be tricky. It didn't have translations because it's using plain HTML. Before translations can be easily supported, it will need to be converted to a React component with JSX markup.
This is possible, but I might not be able to get around to refactoring this during the week.