| 305 | 'This includes things translated via the t`...` function and translate(). It will only track strings translated <b>after</b> this is toggled on, ' | 304 | 'This includes things translated via the t`...` function and translate(). It will only track strings translated <b>after</b> this is toggled on, ' |
| 306 | + 'and when they actually pop up, so refreshing the page and opening popups, etc, is needed. Will only track if the current locale is not English.', | 305 | + 'and when they actually pop up, so refreshing the page and opening popups, etc, is needed. Will only track if the current locale is not English.', |
| 307 | () => { | 306 | () => { |
| 308 | const isTracking = accountStorage.getItem('trackDynamicTranslate') !== 'true'; | 307 | const isTracking = localStorage.getItem('trackDynamicTranslate') !== 'true'; |
| 309 | accountStorage.setItem('trackDynamicTranslate', isTracking ? 'true' : 'false'); | 308 | localStorage.setItem('trackDynamicTranslate', isTracking ? 'true' : 'false'); |
| 310 | if (isTracking && isSupportedNonEnglish()) { | 309 | if (isTracking && isSupportedNonEnglish()) { |
| 311 | trackMissingDynamicTranslate = new Set(); | 310 | trackMissingDynamicTranslate = new Set(); |
| 312 | toastr.success('Dynamic translation tracking enabled.'); | 311 | toastr.success('Dynamic translation tracking enabled.'); |