Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop legacy entry point (only or stable4) #905

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions l10n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@ msgid "All files"
msgstr ""

#: lib/filepicker.ts:183
#: lib/legacy.ts:135
msgid "Choose"
msgstr ""

#: lib/filepicker.ts:171
#: lib/legacy.ts:141
msgid "Copy"
msgstr ""

Expand All @@ -47,7 +45,6 @@ msgstr ""

#: lib/filepicker.ts:177
#: lib/filepicker.ts:191
#: lib/legacy.ts:147
msgid "Move"
msgstr ""

Expand Down
205 changes: 0 additions & 205 deletions lib/legacy.ts

This file was deleted.

5 changes: 2 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createLibConfig } from '@nextcloud/vite-config'
import { readdirSync, readFileSync } from 'fs'
import gettextParser from 'gettext-parser'
import { po as poParser } from 'gettext-parser'
import { defineConfig } from 'vite'

const translations = readdirSync('./l10n')
Expand All @@ -10,7 +10,7 @@ const translations = readdirSync('./l10n')
const locale = file.slice(0, -'.pot'.length)

const po = readFileSync(path)
const json = gettextParser.po.parse(po)
const json = poParser.parse(po)
return {
locale,
json,
Expand All @@ -20,7 +20,6 @@ const translations = readdirSync('./l10n')
export default defineConfig((env) => {
return createLibConfig({
index: 'lib/index.ts',
legacy: 'lib/legacy.ts',
}, {
inlineCSS: false,
config: {
Expand Down
Loading