mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Fix timeago import and warning.
This commit is contained in:
		
							parent
							
								
									983fdac95d
								
							
						
					
					
						commit
						9b1f7086f4
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -59,9 +59,9 @@ export default {
 | 
			
		|||
        (async function () {
 | 
			
		||||
            const locale = App.getPreferenceString("hl", App.defaultLangage);
 | 
			
		||||
            if (locale !== App.TimeAgoConfig.locale) {
 | 
			
		||||
                const localeTime = await import("javascript-time-ago/locale/" + locale + ".json").then(
 | 
			
		||||
                    module => module.default,
 | 
			
		||||
                );
 | 
			
		||||
                const localeTime = await import(
 | 
			
		||||
                    "./../node_modules/javascript-time-ago/locale/" + locale + ".json"
 | 
			
		||||
                ).then(module => module.default);
 | 
			
		||||
                App.TimeAgo.addLocale(localeTime);
 | 
			
		||||
                App.TimeAgoConfig.locale = locale;
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
<template>
 | 
			
		||||
    <h1 v-t="$t('titles.trending')" class="font-bold text-center" />
 | 
			
		||||
    <h1 v-t="'titles.trending'" class="font-bold text-center" />
 | 
			
		||||
 | 
			
		||||
    <hr />
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue