You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/11/22 19:20:50 UTC

[GitHub] [superset] riahk commented on a change in pull request #17501: chore(translations): fix translation literals

riahk commented on a change in pull request #17501:
URL: https://github.com/apache/superset/pull/17501#discussion_r754557307



##########
File path: superset-frontend/src/SqlLab/components/ResultSet/index.tsx
##########
@@ -581,22 +581,22 @@ export default class ResultSet extends React.PureComponent<
     const isAdmin = !!this.props.user?.roles?.Admin;
     const displayMaxRowsReachedMessage = {
       withAdmin: t(
-        `The number of results displayed is limited to %(rows)d by the configuration DISPLAY_MAX_ROWS. `,
+        'The number of results displayed is limited to %(rows)d by the configuration DISPLAY_MAX_ROWS. ',
         { rows },
       ).concat(
         t(
-          `Please add additional limits/filters or download to csv to see more rows up to `,
+          'Please add additional limits/filters or download to csv to see more rows up to ',
         ),
-        t(`the %(limit)d limit.`, { limit }),
+        t('the %(limit)d limit.', { limit }),

Review comment:
       nit: Is there a reason we use this `concat` pattern instead of the method in `App/index` above? is it a jsx vs. tsx thing? My understanding is we could do this here, but correct me if I'm wrong. Is it better to translate smaller segments at a time?
   ```
   .concat(
     t(
       'Please add additional limits/filters or download to csv to see more rows up to ' +
       'the %(limit)d limit.', { limit }
     )
   )
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org