| 304 | 'This includes things translated via the t`...` function and translate(). It will only track strings translated <b>after</b> this is toggled on, ' | 305 | 'This includes things translated via the t`...` function and translate(). It will only track strings translated <b>after</b> this is toggled on, ' |
| 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.', | 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.', |
| 306 | () => { | 307 | () => { |
| 307 | const isTracking = localStorage.getItem('trackDynamicTranslate') !== 'true'; | 308 | const isTracking = accountStorage.getItem('trackDynamicTranslate') !== 'true'; |
| 308 | localStorage.setItem('trackDynamicTranslate', isTracking ? 'true' : 'false'); | 309 | accountStorage.setItem('trackDynamicTranslate', isTracking ? 'true' : 'false'); |
| 309 | if (isTracking && isSupportedNonEnglish()) { | 310 | if (isTracking && isSupportedNonEnglish()) { |
| 310 | trackMissingDynamicTranslate = new Set(); | 311 | trackMissingDynamicTranslate = new Set(); |
| 311 | toastr.success('Dynamic translation tracking enabled.'); | 312 | toastr.success('Dynamic translation tracking enabled.'); |