mirror of
https://github.com/bitwarden/browser
synced 2025-12-27 05:33:59 +00:00
cache tag
This commit is contained in:
@@ -3,7 +3,8 @@ import { I18nService as BaseI18nService } from 'jslib/services/i18n.service';
|
||||
export class I18nService extends BaseI18nService {
|
||||
constructor(systemLanguage: string, localesDirectory: string) {
|
||||
super(systemLanguage, localesDirectory, async (formattedLocale: string) => {
|
||||
const filePath = this.localesDirectory + '/' + formattedLocale + '/messages.json';
|
||||
const filePath = this.localesDirectory + '/' + formattedLocale + '/messages.json?cache=' +
|
||||
process.env.CACHE_TAG;
|
||||
const localesResult = await fetch(filePath);
|
||||
const locales = await localesResult.json();
|
||||
return locales;
|
||||
|
||||
Reference in New Issue
Block a user