-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add t() translation mark to i18nable strings and update translations #1593
Conversation
@@ -153,7 +153,7 @@ export default class Root extends React.Component { | |||
|
|||
/*eslint-disable */ | |||
if (segmentKey != null && segmentKey !== '' && this.props.diagnosticsEnabled) { | |||
!function(){var analytics=global.window.analytics=global.window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http:https://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.0.1"; | |||
!function(){var analytics=global.window.analytics=global.window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(...args){var e=Array.prototype.slice.call(args);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http:https://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.0.1"; |
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 is changed because the acorn parser doesn't likes the arguments
keyword.
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.
Same as the mobile PR do not merge until the tooling are configured to handle this change
Rebase needed |
Rebased. |
@jespino What's the plan for making sure this merges 100% correctly? Should we hold merging PRs while you update it and make sure there are no conflicts? I was just reviewing a PR that adds translation strings, so I don't know if it's safe to merge that yet |
It is not safe to merge it directly. I going to rebase it properly (taking into account changes between the last rebase and the current base). Basically I'll go through the changes one by one, reviewing that all introduced strings are tagged or automatically extracted. We won't merge it until the next release-branch cut, so we can merge into master and give it as much time as possible to test it properly in pre-release. |
38ccfe5
to
0b8b2f5
Compare
67fadd5
to
281551c
Compare
281551c
to
3e87031
Compare
…attermost#1593) * Add t() translation mark to i18nable strings and update translations * Add 'Search Gfycat' string translation * More translation fixes
Summary
I added a mark for every single string that needs to be translate and
isn't directly in a
localizeMessage
,FormattedMessage
or othersimilar block.
After that I used the mmjstool to extract the i18n strings in the code.
Ticket Link
MM-11273
Checklist
make check-style
to check for style errors (required for all pull requests)make test
to ensure unit and component tests passed