diff --git a/src/client/components/TranslationReportTable.jsx b/src/client/components/TranslationReportTable.jsx index 43e2feb2..c712dc6e 100644 --- a/src/client/components/TranslationReportTable.jsx +++ b/src/client/components/TranslationReportTable.jsx @@ -90,6 +90,13 @@ const TranslationReportTable = ( { locale, localeName, wantsUntranslated } ) => : <> } + Shared Strings + { + reportPopulated && reportRows.length > 1 + ? handleSortButtonClick( 'need to put sort key here' )}/> + : <> + } + Common Strings { reportPopulated && reportRows.length > 1 diff --git a/src/client/jsx/getTranslationReportRows.jsx b/src/client/jsx/getTranslationReportRows.jsx index fd7f3858..2c72689b 100644 --- a/src/client/jsx/getTranslationReportRows.jsx +++ b/src/client/jsx/getTranslationReportRows.jsx @@ -79,7 +79,7 @@ const getTranslationReportRows = ( // Create the row JSX. const simSpecificPercent = Math.floor( ( reportObject.numSimSpecificTranslatedStrings / reportObject.numSimSpecificStrings ) * 100 ); let sharedPercent = 0; - const hasSharedStrings = reportObject.numSharedStrings && reportObject.numSharedTranslatedStrings; + const hasSharedStrings = reportObject.numSharedStrings !== undefined && reportObject.numSharedTranslatedStrings !== undefined; let sharedJsx = N/A; const commonPercent = Math.floor( ( reportObject.numCommonTranslatedStrings / reportObject.numCommonStrings ) * 100 ); if ( hasSharedStrings ) {