@mythpe/quasar-ui-qui 0.1.88 → 0.1.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -175,9 +175,11 @@ export const useDtHelpers = (options: MaybeRefOrGetter<MDatatableProps>) => {
|
|
|
175
175
|
return __('show_details')
|
|
176
176
|
})
|
|
177
177
|
const getFormTitle = computed(() => {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
let name = ''
|
|
179
|
+
if (serviceName.value && typeof serviceName.value !== 'function') {
|
|
180
|
+
const s = serviceName.value?.toString()?.split('/').pop() ?? ''
|
|
181
|
+
name = __(`choice.${pascalCase(pluralize(s))}`, 1)
|
|
182
|
+
}
|
|
181
183
|
return __(`replace.${formMode.value}`, { name })
|
|
182
184
|
})
|
|
183
185
|
const isGrid = computed(() => {
|
package/src/utils/Str.ts
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
// import { plural as pluralCase, singular as singularCase } from '__pluralize'
|
|
10
|
-
import __pluralize from './copy_pluralize'
|
|
10
|
+
// import __pluralize from './copy_pluralize'
|
|
11
|
+
import __pluralize from 'pluralize'
|
|
11
12
|
import { camelCase, capitalCase, dotCase, kebabCase, pascalCase, snakeCase } from 'change-case'
|
|
12
13
|
// console.log(__pluralize.plural())
|
|
13
14
|
export const Str = {
|