Skip to content

Commit babe7d6

Browse files
fixup! Move humanFileSize and OC.getCanonicalLocale to npm packages
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent c109533 commit babe7d6

3 files changed

Lines changed: 5 additions & 15 deletions

File tree

core/src/OC/l10n.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -323,17 +323,6 @@ const L10n = {
323323

324324
export default L10n
325325

326-
/**
327-
* Returns the user's locale as a BCP 47 compliant language tag
328-
*
329-
* @returns {String} locale string
330-
* @deprecated 20.0.0 use `getCanonicalLocale` from https://www.npmjs.com/package/@nextcloud/l10n
331-
*/
332-
export const getCanonicalLocale = () => {
333-
const locale = getLocale()
334-
return typeof locale === 'string' ? locale.replace(/_/g, '-') : locale
335-
}
336-
337326
/**
338327
* Returns the user's locale
339328
*

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@nextcloud/capabilities": "^1.0.2",
3232
"@nextcloud/dialogs": "^1.3.1",
3333
"@nextcloud/event-bus": "^1.1.4",
34-
"@nextcloud/files": "^1.0.1",
34+
"@nextcloud/files": "^1.1.0",
3535
"@nextcloud/initial-state": "^1.1.2",
3636
"@nextcloud/l10n": "^1.3.0",
3737
"@nextcloud/logger": "^1.1.2",

0 commit comments

Comments
 (0)