UNPKG

google-photos-migrate

Version:

A tool to fix EXIF data and recover filenames from a Google Photos takeout.

59 lines (58 loc) 1.64 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.editedSuffices = exports.untitledDirs = exports.photosDirs = exports.localizedTerms = void 0; exports.localizedTerms = { de: { editedSuffix: 'bearbeitet', photosDir: 'Google Fotos', untitledDir: 'Unbenannt', }, en: { editedSuffix: 'edited', photosDir: 'Google Photos', untitledDir: 'Untitled', }, es: { editedSuffix: 'ha editado', untitledDir: 'Sin título', }, fi: { editedSuffix: 'muokattu', photosDir: 'Google Kuvat', untitledDir: 'Nimetön', }, fr: { editedSuffix: 'modifié', }, ja: { editedSuffix: '編集済み', photosDir: 'Google フォト', untitledDir: '無題', }, ru: { editedSuffix: 'измененный', photosDir: 'Google Фото', untitledDir: 'Без названия', }, tr: { editedSuffix: 'düzenlendi', photosDir: 'Google Fotoğraflar', untitledDir: 'Adsız', }, 'zh-CN': { editedSuffix: '已修改', photosDir: 'Google 相册', untitledDir: '未命名', }, 'zh-TW': { editedSuffix: '已編輯', photosDir: 'Google 相簿', untitledDir: '未命名', }, }; const getValues = (key) => Object.values(exports.localizedTerms) .map((t) => t[key]) .filter((v) => v !== undefined); exports.photosDirs = getValues('photosDir'); exports.untitledDirs = getValues('untitledDir'); exports.editedSuffices = getValues('editedSuffix');