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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]