This repository has been archived by the owner on Nov 20, 2021. It is now read-only.
forked from liferay/liferay-portal
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LPS-85062 Replace language keys by their value in npm modules
- Loading branch information
Showing
5 changed files
with
139 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
.../liferay/frontend/js/loader/modules/extender/internal/npm/builtin/ResourceDescriptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. | ||
* | ||
* This library is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU Lesser General Public License as published by the Free | ||
* Software Foundation; either version 2.1 of the License, or (at your option) | ||
* any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
* details. | ||
*/ | ||
|
||
package com.liferay.frontend.js.loader.modules.extender.internal.npm.builtin; | ||
|
||
import com.liferay.frontend.js.loader.modules.extender.npm.JSPackage; | ||
|
||
/** | ||
* @author Iván Zaera Avellón | ||
*/ | ||
public class ResourceDescriptor { | ||
|
||
public ResourceDescriptor(JSPackage jsPackage, String packagePath) { | ||
_jsPackage = jsPackage; | ||
_packagePath = packagePath; | ||
} | ||
|
||
public JSPackage getJsPackage() { | ||
return _jsPackage; | ||
} | ||
|
||
public String getPackagePath() { | ||
return _packagePath; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return _jsPackage.getResolvedId() + _jsPackage; | ||
} | ||
|
||
private final JSPackage _jsPackage; | ||
private final String _packagePath; | ||
|
||
} |